get channel subscriber count (#94)

update
This commit is contained in:
ChunkyProgrammer 2021-08-14 00:28:52 -04:00 committed by GitHub
parent ce5881bad1
commit b28356d0ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -238,7 +238,7 @@ public class ResponseHelper {
}
final Channel channel = new Channel(info.getId(), info.getName(), rewriteURL(info.getAvatarUrl()),
rewriteURL(info.getBannerUrl()), info.getDescription(), nextpage, relatedStreams);
rewriteURL(info.getBannerUrl()), info.getDescription(), nextpage, info.getSubscriberCount(), relatedStreams);
IPFS.publishData(channel);

View file

@ -5,16 +5,18 @@ import java.util.List;
public class Channel {
public String id, name, avatarUrl, bannerUrl, description, nextpage;
public long subscriberCount;
public List<StreamItem> relatedStreams;
public Channel(String id, String name, String avatarUrl, String bannerUrl, String description, String nextpage,
List<StreamItem> relatedStreams) {
long subscriberCount, List<StreamItem> relatedStreams) {
this.id = id;
this.name = name;
this.avatarUrl = avatarUrl;
this.bannerUrl = bannerUrl;
this.description = description;
this.nextpage = nextpage;
this.subscriberCount = subscriberCount;
this.relatedStreams = relatedStreams;
}
}