Skip to content

Commit

Permalink
Repopulated subscription.
Browse files Browse the repository at this point in the history
  • Loading branch information
guptakshitij2308 committed Oct 30, 2024
1 parent 51479bc commit 7724154
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,23 @@ public void setSubscriptionId(String subscriptionId) {

private String expiryDate;
private String cityId;
private String title;
private String subtitle;

public String getTitle() {
return title;
}

public void setTitle(String title) {
this.title = title;
}
public String getSubtitle() {
return subtitle;
}

public void setSubtitle(String subtitle) {
this.subtitle = subtitle;
}

public String getStatus() {
return status;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ public MutationResult createSubscription(String email, String passId) {
.status("Active")
.expiryDate(expiryDate)
.cityId(pass.getCityId())
.title(pass.getTitle())
.subtitle(pass.getDescription())
.build();

log.error(subscription.toString());
Expand Down Expand Up @@ -157,6 +159,8 @@ com.flickmatch.platform.graphql.type.Subscription mapEventToGQLType(Subscription
.gamesLeft(subs.getGamesLeft())
.status(subs.getStatus())
.cityId(subs.getCityId())
.title(subs.getTitle())
.subtitle(subs.getSubtitle())
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public UserResult createUser(@Argument CreateUserInput input) {
.isSuccessful(false)
.build();
}


}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ public class Subscription {
private Double gamesLeft;
private String cityId;
private String expiryDate;
private String title;
private String subtitle;
}
2 changes: 2 additions & 0 deletions platform/src/main/resources/graphql/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ type Subscription {
gamesLeft: Float!
status: String!
cityId: String!
title: String!
subtitle: String!
}

type Pass {
Expand Down

0 comments on commit 7724154

Please sign in to comment.