Whatsapp

51612

Whatsapp

951612 >= 2.2222.8

Hierarchy (view full)

Constructors

  • Parameters

    • Optional e: any
    • Optional t: {
          parent: any;
      }
      • parent: any

    Returns MsgLoad

Properties

findFirst: {
    <S>(predicate, thisArg?): S;
    (predicate, thisArg?): MsgModel;
}

Type declaration

    • <S>(predicate, thisArg?): S
    • Returns the value of the first element in the array where predicate is true, and undefined otherwise.

      Type Parameters

      Parameters

      • predicate: ((value, index, obj) => value is S)

        find calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.

          • (value, index, obj): value is S
          • Parameters

            Returns value is S

      • Optional thisArg: any

        If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.

      Returns S

    • (predicate, thisArg?): MsgModel
    • Parameters

      • predicate: ((value, index, obj) => unknown)
          • (value, index, obj): unknown
          • Parameters

            Returns unknown

      • Optional thisArg: any

      Returns MsgModel

loadAroundPromise?: Promise<any>
loadEarlierPromise?: Promise<any>
loadRecentPromise?: Promise<any>
modelClass: MsgModel
msgLoadState: MsgLoadState
onResume: ((...args) => any)

Type declaration

    • (...args): any
    • Parameters

      • Rest ...args: any

      Returns any

cachePolicy: {
    id: string;
    policy: string;
    trigger: string;
}

Type declaration

  • id: string
  • policy: string
  • trigger: string
comparator: ((a, b) => number)

Type declaration

    • (a, b): number
    • Parameters

      • a: any
      • b: any

      Returns number

model: any

Accessors

  • get length(): number
  • Returns number

Methods

  • Parameters

    • position: number

    Returns MsgModel

  • Alias of on

    Parameters

    • eventName: Event
    • listener: Listener
    • Optional context: any

    Returns this

    Alias

    on

  • Returns void

  • Alias of trigger

    Parameters

    • eventName: Event
    • Rest ...args: any[]

    Returns this

    Alias

    trigger

  • Determines whether all the members of an array satisfy the specified test.

    Type Parameters

    Parameters

    • predicate: ((value, index, array) => value is S)

      A function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.

        • (value, index, array): value is S
        • Parameters

          Returns value is S

    • Optional thisArg: any

      An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

    Returns this is S[]

  • Determines whether all the members of an array satisfy the specified test.

    Parameters

    • predicate: ((value, index, array) => unknown)

      A function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.

        • (value, index, array): unknown
        • Parameters

          Returns unknown

    • Optional thisArg: any

      An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

    Returns boolean

  • Returns the elements of an array that meet the condition specified in a callback function.

    Type Parameters

    Parameters

    • predicate: ((value, index, array) => value is S)

      A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.

        • (value, index, array): value is S
        • Parameters

          Returns value is S

    • Optional thisArg: any

      An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

    Returns S[]

  • Returns the elements of an array that meet the condition specified in a callback function.

    Parameters

    • predicate: ((value, index, array) => unknown)

      A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.

        • (value, index, array): unknown
        • Parameters

          Returns unknown

    • Optional thisArg: any

      An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

    Returns MsgModel[]

  • Parameters

    • id: Stringable
    • Optional options: {
          logOnSend?: boolean;
          set?: boolean;
      }
      • Optional logOnSend?: boolean
      • Optional set?: boolean

    Returns Promise<MsgModel>

  • Parameters

    • id: Stringable
    • Optional options: {
          logOnSend?: boolean;
          set?: boolean;
      }
      • Optional logOnSend?: boolean
      • Optional set?: boolean

    Returns Promise<MsgModel>

  • Performs the specified action for each element in an array.

    Parameters

    • callbackfn: ((value, index, array) => void)

      A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.

        • (value, index, array): void
        • Parameters

          Returns void

    • Optional thisArg: any

      An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

    Returns void

  • Parameters

    • id: MsgModel | Stringable
    • Optional options: any

    Returns MsgModel

  • Parameters

    • e: Stringable

    Returns MsgModel

  • Parameters

    Returns void

  • Parameters

    • model: MsgModel
    • Optional position: number

    Returns boolean

  • Returns the index of the first occurrence of a value in an array, or -1 if it is not present.

    Parameters

    • searchElement: MsgModel

      The value to locate in the array.

    • Optional fromIndex: number

      The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.

    Returns number

  • Parameters

    • eventName: Event

    Returns boolean

  • Parameters

    • model: any

    Returns model is MsgModel

  • Parameters

    • id: Stringable

    Returns boolean

  • Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.

    Parameters

    • searchElement: MsgModel

      The value to locate in the array.

    • Optional fromIndex: number

      The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.

    Returns number

  • Parameters

    • context: any

      The value of this provided for the call to listener

    • eventName: Event

      The name of the event.

    • Optional listener: Listener

      The callback function.

    Returns this

  • Parameters

    • context: any

      The value of this provided for the call to listener

    • eventName: Event

      The name of the event.

    • Optional listener: Listener

      The callback function.

    Returns this

  • Parameters

    • context: any

      The value of this provided for the call to listener

    • eventName: Event

      The name of the event.

    • Optional listener: Listener

      The callback function.

    Returns this

  • Calls a defined callback function on each element of an array, and returns an array that contains the results.

    Type Parameters

    • U

    Parameters

    • callbackfn: ((value, index, array) => U)

      A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.

    • Optional thisArg: any

      An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

    Returns U[]

  • Removes the specified listener from the listener array for the event named eventName.

    Parameters

    • Optional eventName: Event

      The name of the event.

    • Optional listener: Listener

      The callback function.

    • Optional context: any

      The value of this provided for the call to listener

    Returns this

    Returns a reference to the EventEmitter, so that calls can be chained.

  • Adds the listener function to the end of the listeners array for the event named eventName.

    Parameters

    • eventName: Event

      The name of the event.

    • listener: Listener

      The callback function.

    • Optional context: any

      The value of this provided for the call to listener

    Returns this

    Returns a reference to the EventEmitter, so that calls can be chained.

  • Adds a one-time listener function for the event named eventName.

    Parameters

    • eventName: Event

      The name of the event.

    • listener: Listener

      The callback function.

    • Optional context: any

      The value of this provided for the call to listener

    Returns this

    Returns a reference to the EventEmitter, so that calls can be chained.

  • Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

    Parameters

    • callbackfn: ((previousValue, currentValue, currentIndex, array) => MsgModel)

      A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.

    Returns MsgModel

  • Parameters

    Returns MsgModel

  • Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

    Type Parameters

    • U

    Parameters

    • callbackfn: ((previousValue, currentValue, currentIndex, array) => U)

      A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.

        • (previousValue, currentValue, currentIndex, array): U
        • Parameters

          Returns U

    • initialValue: U

      If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.

    Returns U

  • Parameters

    • value: MsgModel | MsgModel[]
    • Optional options: {
          index?: boolean;
          silent?: boolean;
      }
      • Optional index?: boolean
      • Optional silent?: boolean

    Returns MsgModel[]

  • Removes all listeners.

    Returns this

    Returns a reference to the EventEmitter, so that calls can be chained.

  • Alias of off

    Parameters

    • Optional eventName: Event
    • Optional listener: Listener
    • Optional context: any

    Returns this

    Alias

    off

  • Parameters

    • e: number
    • t: number

    Returns MsgModel[]

  • Parameters

    • e: any
    • t: any

    Returns void

  • Parameters

    • e: any
    • t: any

    Returns void

  • Returns void

  • Returns void

  • Returns any[]

  • Returns a copy of a section of an array. For both start and end, a negative index can be used to indicate an offset from the end of the array. For example, -2 refers to the second to last element of the array.

    Parameters

    • Optional start: number

      The beginning index of the specified portion of the array. If start is undefined, then the slice begins at index 0.

    • Optional end: number

      The end index of the specified portion of the array. This is exclusive of the element at the index 'end'. If end is undefined, then the slice extends to the end of the array.

    Returns MsgModel[]

  • Determines whether the specified callback function returns true for any element of an array.

    Parameters

    • predicate: ((value, index, array) => unknown)

      A function that accepts up to three arguments. The some method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.

        • (value, index, array): unknown
        • Parameters

          Returns unknown

    • Optional thisArg: any

      An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

    Returns boolean

  • Parameters

    • Optional options: {
          silent?: boolean;
      }
      • Optional silent?: boolean

    Returns this

  • Parameters

    • Optional context: any
    • Optional eventName: Event
    • Optional listener: Listener

    Returns this

  • Returns any[]

  • Synchronously calls each of the listeners registered for the event named eventName, in the order they were registered, passing the supplied arguments to each.

    Parameters

    • eventName: Event
    • Rest ...args: any[]

    Returns this

    Returns a reference to the EventEmitter, so that calls can be chained.

  • Alias of off

    Parameters

    • Optional eventName: Event
    • Optional listener: Listener
    • Optional context: any

    Returns this

    Alias

    off

  • Parameters

    • id: Stringable
    • Optional options: {
          logOnSend?: boolean;
          set?: boolean;
      }
      • Optional logOnSend?: boolean
      • Optional set?: boolean

    Returns Promise<MsgModel>

  • Parameters

    • ids: Stringable[]

    Returns MsgModel[]