Skip to content

Commit

Permalink
chore: add missing state field in ActivityBuilder (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
priyanuj-gogoi authored Sep 20, 2023
1 parent d130e4c commit 3630696
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/src/builders/presence.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,19 @@ enum CurrentUserStatus {
class ActivityBuilder extends CreateBuilder<Activity> {
String name;

String? state;

ActivityType type;

Uri? url;

ActivityBuilder({required this.name, required this.type, this.url});
ActivityBuilder({required this.name, required this.type, this.state, this.url});

@override
Map<String, Object?> build() => {
'name': name,
'type': type.value,
if (state != null) 'state': state!,
if (url != null) 'url': url!.toString(),
};
}

0 comments on commit 3630696

Please sign in to comment.