CallEvent class
Call information.
- Annotations
-
- @freezed
Constructors
-
CallEvent({@JsonKey(name: 'jid') required String jid, @JsonKey(name: 'uid') required String uid, @Default(false) @JsonKey(name: 'buzz') bool? buzz, @JsonKey(name: 'created') @DateTimeConverter() required DateTime created, @JsonKey(name: 'start') @DateTimeConverter() DateTime? start, @JsonKey(name: 'finish') @DateTimeConverter() DateTime? finish, @JsonKey(name: 'audiorecord') required bool audiorecord, @JsonKey(name: 'onliners') List<
CallOnliner> ? onliners, @JsonKey(name: 'gentime') required int gentime, @Deprecated('Deprecated: use gentime or created.') @JsonKey(name: 'timestamp') required int timestamp}) -
constfactory
-
CallEvent.fromJson(Map<
String, dynamic> json) -
factory
Properties
- audiorecord → bool
-
Call record enabled.
no setterinherited
- buzz → bool?
-
Call buzzing.
no setterinherited
-
copyWith
→ $CallEventCopyWith<
CallEvent> -
no setterinherited
- created → DateTime
-
Creation date, iso datetime.
no setterinherited
- finish → DateTime?
-
Call finish.
no setterinherited
- gentime → int
-
Version.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- jid → String
-
Chat or contact id.
no setterinherited
-
onliners
→ List<
CallOnliner> ? -
Call participants.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start → DateTime?
-
Call start. For direct calls can be empty when buzzing.
no setterinherited
- timestamp → int
-
Deprecated: use gentime or created.
no setterinherited
- uid → String
-
Call id.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited