Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Emojis in emoji button #44

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lib/api/resources/entries.dart
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,12 @@ class EntriesApi extends ApiResource {
print(voteCount);
return int.parse(voteCount["vote_count"]);
}

Future<List<Voter>> getCommentUpVoters(int id) async {
var items =
await client.request('entries', 'commentupvoters', api: [id.toString()]);
print(items);
var voters = client.deserializeList(VoterResponse.serializer, items);
return voters.map((e) => Voter.fromResponse(response: e)).toList();
}
}
3 changes: 3 additions & 0 deletions lib/api/response_models/entry_comment_response.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ abstract class EntryCommentResponse
@BuiltValueField(wireName: "violation_url")
String get violationUrl;

@nullable
String get app;

EntryCommentResponse._();
static Serializer<EntryCommentResponse> get serializer =>
_$entryCommentResponseSerializer;
Expand Down
45 changes: 34 additions & 11 deletions lib/api/response_models/entry_comment_response.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions lib/api/response_models/entry_response.dart
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ abstract class EntryResponse
@BuiltValueField(wireName: "violation_url")
String get violationUrl;

@nullable
String get app;

EntryResponse._();
static Serializer<EntryResponse> get serializer => _$entryResponseSerializer;
}
53 changes: 39 additions & 14 deletions lib/api/response_models/entry_response.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions lib/api/response_models/link_comment_response.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ abstract class LinkCommentResponse
@BuiltValueField(wireName: "violation_url")
String get violationUrl;

@nullable
String get app;

LinkCommentResponse._();
static Serializer<LinkCommentResponse> get serializer =>
_$linkCommentResponseSerializer;
Expand Down
Loading