AmityStoryTargetCommunity constructor

AmityStoryTargetCommunity({
  1. AmityCommunity? community,
  2. required String targetId,
  3. DateTime? lastStoryExpiresAt,
  4. DateTime? lastStorySeenExpiresAt,
  5. bool hasUnseen = false,
  6. String? targetPublicId,
  7. DateTime? localSortingDate,
  8. DateTime? localLastStoryExpiresAt,
  9. DateTime? localLastStorySeenExpiresAt,
  10. int syncingStoriesCount = 0,
  11. int failedStoriesCount = 0,
  12. DateTime? updatedAt,
  13. 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);