PubSubCommentBase constructor
PubSubCommentBase({
- required String id,
- required String tenantId,
- String? userId,
- required String urlId,
- required String commenterName,
- String? commenterLink,
- required String commentHTML,
- required String comment,
- String? parentId,
- int? votes,
- int? votesUp,
- int? votesDown,
- required bool verified,
- String? avatarSrc,
- bool? hasImages,
- bool? hasLinks,
- bool? isByAdmin,
- bool? isByModerator,
- bool? isPinned,
- bool? isLocked,
- String? displayLabel,
- double? rating,
- List<
CommentUserBadgeInfo> ? badges = const [], - int? viewCount,
- bool? isDeleted,
- bool? isDeletedUser,
- bool? isSpam,
- String? anonUserId,
- List<
String> feedbackIds = const [], - int? flagCount,
- String? domain,
- required String url,
- String? pageTitle,
- DateTime? expireAt,
- bool? reviewed,
- bool? hasCode,
- required bool approved,
- required String? locale,
- bool? isBannedUser,
- List<
String> ? groupIds = const [],
Returns a new PubSubCommentBase instance.
Implementation
PubSubCommentBase({
required this.id,
required this.tenantId,
this.userId,
required this.urlId,
required this.commenterName,
this.commenterLink,
required this.commentHTML,
required this.comment,
this.parentId,
this.votes,
this.votesUp,
this.votesDown,
required this.verified,
this.avatarSrc,
this.hasImages,
this.hasLinks,
this.isByAdmin,
this.isByModerator,
this.isPinned,
this.isLocked,
this.displayLabel,
this.rating,
this.badges = const [],
this.viewCount,
this.isDeleted,
this.isDeletedUser,
this.isSpam,
this.anonUserId,
this.feedbackIds = const [],
this.flagCount,
this.domain,
required this.url,
this.pageTitle,
this.expireAt,
this.reviewed,
this.hasCode,
required this.approved,
required this.locale,
this.isBannedUser,
this.groupIds = const [],
});