SubscriptionModel class

Holds properties of SIP subscription item

Inheritance

Constructors

SubscriptionModel.new([String toExt = "", int fromAccId = 0, String mimeSubType = "", String eventType = ""])
SubscriptionModel.BLF(String ext, int accId)
Create BLF subscription
factory
SubscriptionModel.fromJson(Map<String, dynamic> jsonMap)
Creates instance of SubscriptionModel with values read from json
SubscriptionModel.Presence(String ext, int accId)
Create Presence subscription
factory

Properties

accUri String
Account URI used serialize as the 'fromAccId' valid only during current session and may got new value
getter/setter pair
eventType String
Event type which library will put in the SIP header 'Event'
getter/setter pair
expireTime int?
Expire time in seconds (how often library will update this subscription)
getter/setter pair
fromAccId int
Account id using for sending subscribe request
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
label String
Label using for display this subscription on UI
getter/setter pair
mimeSubType String
MimeSubType which library will put in the SIP header 'Accept'
getter/setter pair
mySubscrId int
Unique id assigned by library (valid only during current session)
getter/setter pair
response String
Response received from remote side in the body of SIP NOTIFY request
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state SubscriptionState
State of the subscription dialog
getter/setter pair
toExt String
Remote extension, which will notify us when its state changed
getter/setter pair

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
onSubscrStateChanged(SubscriptionState s, String resp) → void
Handle event raised by library (override on app level)
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited