AmityStoryTargetCommunity constructor
AmityStoryTargetCommunity({
- AmityCommunity? community,
- required String targetId,
- DateTime? lastStoryExpiresAt,
- DateTime? lastStorySeenExpiresAt,
- bool hasUnseen = false,
- String? targetPublicId,
- DateTime? localSortingDate,
- DateTime? localLastStoryExpiresAt,
- DateTime? localLastStorySeenExpiresAt,
- int syncingStoriesCount = 0,
- int failedStoriesCount = 0,
- DateTime? updatedAt,
- DateTime? highestSeen,
Implementation
AmityStoryTargetCommunity({
this.community,
required String targetId,
DateTime? lastStoryExpiresAt,
DateTime? lastStorySeenExpiresAt,
bool hasUnseen = false,
String? targetPublicId,
DateTime? localSortingDate,
DateTime? localLastStoryExpiresAt,
DateTime? localLastStorySeenExpiresAt,
int syncingStoriesCount = 0,
int failedStoriesCount = 0,
DateTime? updatedAt,
DateTime? highestSeen,
}) : super(
uniqueId: AmityStoryTarget.generateUniqueId(
AmityStoryTargetType.COMMUNITY.value, targetId),
targetType: AmityStoryTargetType.COMMUNITY,
targetId: targetId,
lastStoryExpiresAt: lastStoryExpiresAt,
lastStorySeenExpiresAt: lastStorySeenExpiresAt,
hasUnseen: hasUnseen,
targetPublicId: targetPublicId,
localSortingDate: localSortingDate,
localLastStoryExpiresAt: localLastStoryExpiresAt,
localLastStorySeenExpiresAt: localLastStorySeenExpiresAt,
syncingStoriesCount: syncingStoriesCount,
failedStoriesCount: failedStoriesCount,
updatedAt: updatedAt,
highestSeen: highestSeen);