-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f55a186
commit b75666b
Showing
7 changed files
with
72 additions
and
2 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
21 changes: 21 additions & 0 deletions
21
lib/jmap/core/capability/web_socket_ticket_capability.dart
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import 'package:jmap_dart_client/jmap/core/capability/capability_properties.dart'; | ||
import 'package:json_annotation/json_annotation.dart'; | ||
|
||
part 'web_socket_ticket_capability.g.dart'; | ||
|
||
@JsonSerializable(explicitToJson: true, includeIfNull: false) | ||
class WebSocketTicketCapability extends CapabilityProperties { | ||
final Uri? generationEndpoint; | ||
final Uri? revocationEndpoint; | ||
|
||
WebSocketTicketCapability({required this.generationEndpoint, required this.revocationEndpoint}); | ||
|
||
factory WebSocketTicketCapability.fromJson(Map<String, dynamic> json) => _$WebSocketTicketCapabilityFromJson(json); | ||
|
||
Map<String, dynamic> toJson() => _$WebSocketTicketCapabilityToJson(this); | ||
|
||
static WebSocketTicketCapability deserialize(Map<String, dynamic> json) => WebSocketTicketCapability.fromJson(json); | ||
|
||
@override | ||
List<Object?> get props => [generationEndpoint, revocationEndpoint]; | ||
} |
33 changes: 33 additions & 0 deletions
33
lib/jmap/core/capability/web_socket_ticket_capability.g.dart
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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