-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'migration/v2' of github.com:waterbustech/waterbus-flutt…
…er-sdk into migration/v2
- Loading branch information
Showing
8 changed files
with
188 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
import 'package:collection/collection.dart'; | ||
|
||
enum ChatStatusEnum { | ||
invite(0), | ||
enum MeetingStatus { | ||
archived(1), | ||
join(2); | ||
active(0); | ||
|
||
const ChatStatusEnum(this.status); | ||
const MeetingStatus(this.status); | ||
|
||
final int status; | ||
} | ||
|
||
extension ChatStatusEnumX on int { | ||
ChatStatusEnum get getChatStatusEnum { | ||
return ChatStatusEnum.values | ||
extension MeetingStatusX on int { | ||
MeetingStatus get getMeetingStatusEnum { | ||
return MeetingStatus.values | ||
.firstWhereOrNull((status) => status.status == this) ?? | ||
ChatStatusEnum.join; | ||
MeetingStatus.active; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters