Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ part 'achievement_clicked.freezed.dart';
part 'achievement_clicked.g.dart';

@freezed
class AchievementClickedEvent with _$AchievementClickedEvent {
abstract class AchievementClickedEvent with _$AchievementClickedEvent {
const factory AchievementClickedEvent({
required int elementPosition,
required String elementTitle,
Expand Down
2 changes: 1 addition & 1 deletion bccm_core/lib/src/models/analytics/achievement_shared.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ part 'achievement_shared.freezed.dart';
part 'achievement_shared.g.dart';

@freezed
class AchievementSharedEvent with _$AchievementSharedEvent {
abstract class AchievementSharedEvent with _$AchievementSharedEvent {
const factory AchievementSharedEvent({required String elementTitle}) = _AchievementSharedEvent;

factory AchievementSharedEvent.fromJson(Map<String, dynamic> json) => _$AchievementSharedEventFromJson(json);
Expand Down
2 changes: 1 addition & 1 deletion bccm_core/lib/src/models/analytics/audio_only_clicked.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ part 'audio_only_clicked.freezed.dart';
part 'audio_only_clicked.g.dart';

@freezed
class AudioOnlyClickedEvent with _$AudioOnlyClickedEvent {
abstract class AudioOnlyClickedEvent with _$AudioOnlyClickedEvent {
const factory AudioOnlyClickedEvent({
required bool audioOnly,
}) = _AudioOnlyClickedEvent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ part 'calendar_day_clicked.freezed.dart';
part 'calendar_day_clicked.g.dart';

@freezed
class CalendarDayClickedEvent with _$CalendarDayClickedEvent {
abstract class CalendarDayClickedEvent with _$CalendarDayClickedEvent {
const factory CalendarDayClickedEvent({
required String pageCode,
required String calendarView,
Expand Down
2 changes: 1 addition & 1 deletion bccm_core/lib/src/models/analytics/chapter_clicked.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ part 'chapter_clicked.freezed.dart';
part 'chapter_clicked.g.dart';

@freezed
class ChapterClickedEvent with _$ChapterClickedEvent {
abstract class ChapterClickedEvent with _$ChapterClickedEvent {
const factory ChapterClickedEvent({
required String elementType,
required String elementId,
Expand Down
2 changes: 1 addition & 1 deletion bccm_core/lib/src/models/analytics/content_shared.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ part 'content_shared.freezed.dart';
part 'content_shared.g.dart';

@freezed
class ContentSharedEvent with _$ContentSharedEvent {
abstract class ContentSharedEvent with _$ContentSharedEvent {
const factory ContentSharedEvent({
required String pageCode,
required String elementType,
Expand Down
2 changes: 1 addition & 1 deletion bccm_core/lib/src/models/analytics/deep_link_opened.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ part 'deep_link_opened.freezed.dart';
part 'deep_link_opened.g.dart';

@freezed
class DeepLinkOpenedEvent with _$DeepLinkOpenedEvent {
abstract class DeepLinkOpenedEvent with _$DeepLinkOpenedEvent {
const factory DeepLinkOpenedEvent({
required String url,
required String source,
Expand Down
6 changes: 3 additions & 3 deletions bccm_core/lib/src/models/analytics/downloads.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ part 'downloads.freezed.dart';
part 'downloads.g.dart';

@freezed
class VideoDownloadStartedEvent with _$VideoDownloadStartedEvent {
abstract class VideoDownloadStartedEvent with _$VideoDownloadStartedEvent {
const factory VideoDownloadStartedEvent({
required String downloadId,
required String episodeId,
Expand All @@ -16,7 +16,7 @@ class VideoDownloadStartedEvent with _$VideoDownloadStartedEvent {
}

@freezed
class VideoDownloadRemovedEvent with _$VideoDownloadRemovedEvent {
abstract class VideoDownloadRemovedEvent with _$VideoDownloadRemovedEvent {
const factory VideoDownloadRemovedEvent({
required String downloadId,
required String? episodeId,
Expand All @@ -26,7 +26,7 @@ class VideoDownloadRemovedEvent with _$VideoDownloadRemovedEvent {
}

@freezed
class VideoDownloadPlayedEvent with _$VideoDownloadPlayedEvent {
abstract class VideoDownloadPlayedEvent with _$VideoDownloadPlayedEvent {
const factory VideoDownloadPlayedEvent({
required String downloadId,
required String? episodeId,
Expand Down
2 changes: 1 addition & 1 deletion bccm_core/lib/src/models/analytics/game_closed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ part 'game_closed.freezed.dart';
part 'game_closed.g.dart';

@freezed
class GameClosedEvent with _$GameClosedEvent {
abstract class GameClosedEvent with _$GameClosedEvent {
const factory GameClosedEvent({
required String gameId,
required int timeSpent,
Expand Down
2 changes: 1 addition & 1 deletion bccm_core/lib/src/models/analytics/language_changed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ part 'language_changed.freezed.dart';
part 'language_changed.g.dart';

@freezed
class LanguageChangedEvent with _$LanguageChangedEvent {
abstract class LanguageChangedEvent with _$LanguageChangedEvent {
const factory LanguageChangedEvent({
required String? languageFrom,
required String languageTo,
Expand Down
12 changes: 6 additions & 6 deletions bccm_core/lib/src/models/analytics/misc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ part 'misc.freezed.dart';
part 'misc.g.dart';

@freezed
class InteractionEvent with _$InteractionEvent {
abstract class InteractionEvent with _$InteractionEvent {
const factory InteractionEvent({
String? interaction,
String? pageCode,
Expand All @@ -17,7 +17,7 @@ class InteractionEvent with _$InteractionEvent {
}

@freezed
class ImpressionEvent with _$ImpressionEvent {
abstract class ImpressionEvent with _$ImpressionEvent {
const factory ImpressionEvent({
String? name,
String? pageCode,
Expand All @@ -30,7 +30,7 @@ class ImpressionEvent with _$ImpressionEvent {
}

@freezed
class GuideShownEvent with _$GuideShownEvent {
abstract class GuideShownEvent with _$GuideShownEvent {
const factory GuideShownEvent({
String? guide,
Map<String, dynamic>? meta,
Expand All @@ -40,7 +40,7 @@ class GuideShownEvent with _$GuideShownEvent {
}

@freezed
class TimeMeasurementEvent with _$TimeMeasurementEvent {
abstract class TimeMeasurementEvent with _$TimeMeasurementEvent {
const factory TimeMeasurementEvent({
String? key,
double? seconds,
Expand All @@ -51,7 +51,7 @@ class TimeMeasurementEvent with _$TimeMeasurementEvent {
}

@freezed
class LogEvent with _$LogEvent {
abstract class LogEvent with _$LogEvent {
const factory LogEvent({
String? name,
String? message,
Expand All @@ -63,7 +63,7 @@ class LogEvent with _$LogEvent {
}

@freezed
class VideoPlayedEvent with _$VideoPlayedEvent {
abstract class VideoPlayedEvent with _$VideoPlayedEvent {
const factory VideoPlayedEvent({
String? videoId,
String? referenceId,
Expand Down
10 changes: 5 additions & 5 deletions bccm_core/lib/src/models/analytics/notification_prompt.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ part 'notification_prompt.freezed.dart';
part 'notification_prompt.g.dart';

@freezed
class NotificationPromptDismissedEvent with _$NotificationPromptDismissedEvent {
abstract class NotificationPromptDismissedEvent with _$NotificationPromptDismissedEvent {
const factory NotificationPromptDismissedEvent({
required int timesDismissed,
}) = _NotificationPromptDismissedEvent;
Expand All @@ -13,25 +13,25 @@ class NotificationPromptDismissedEvent with _$NotificationPromptDismissedEvent {
}

@freezed
class NotificationPromptClickedEvent with _$NotificationPromptClickedEvent {
abstract class NotificationPromptClickedEvent with _$NotificationPromptClickedEvent {
const factory NotificationPromptClickedEvent() = _NotificationPromptClickedEvent;
factory NotificationPromptClickedEvent.fromJson(Map<String, dynamic> json) => _$NotificationPromptClickedEventFromJson(json);
}

@freezed
class NotificationPromptDeniedEvent with _$NotificationPromptDeniedEvent {
abstract class NotificationPromptDeniedEvent with _$NotificationPromptDeniedEvent {
const factory NotificationPromptDeniedEvent() = _NotificationPromptDeniedEvent;
factory NotificationPromptDeniedEvent.fromJson(Map<String, dynamic> json) => _$NotificationPromptDeniedEventFromJson(json);
}

@freezed
class NotificationPromptAcceptedEvent with _$NotificationPromptAcceptedEvent {
abstract class NotificationPromptAcceptedEvent with _$NotificationPromptAcceptedEvent {
const factory NotificationPromptAcceptedEvent() = _NotificationPromptAcceptedEvent;
factory NotificationPromptAcceptedEvent.fromJson(Map<String, dynamic> json) => _$NotificationPromptAcceptedEventFromJson(json);
}

@freezed
class NotificationsSettingToggledEvent with _$NotificationsSettingToggledEvent {
abstract class NotificationsSettingToggledEvent with _$NotificationsSettingToggledEvent {
const factory NotificationsSettingToggledEvent({
required bool enabled,
}) = _NotificationsSettingToggledEvent;
Expand Down
8 changes: 4 additions & 4 deletions bccm_core/lib/src/models/analytics/notifications.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ part 'notifications.freezed.dart';
part 'notifications.g.dart';

@freezed
class NotificationReceivedEvent with _$NotificationReceivedEvent {
abstract class NotificationReceivedEvent with _$NotificationReceivedEvent {
const factory NotificationReceivedEvent({
String? notificationId,
String? action,
Expand All @@ -15,7 +15,7 @@ class NotificationReceivedEvent with _$NotificationReceivedEvent {
}

@freezed
class NotificationOpenedEvent with _$NotificationOpenedEvent {
abstract class NotificationOpenedEvent with _$NotificationOpenedEvent {
const factory NotificationOpenedEvent({
String? notificationId,
}) = _NotificationOpenedEvent;
Expand All @@ -24,13 +24,13 @@ class NotificationOpenedEvent with _$NotificationOpenedEvent {
}

@freezed
class NotificationDeviceTokenUpdatedEvent with _$NotificationDeviceTokenUpdatedEvent {
abstract class NotificationDeviceTokenUpdatedEvent with _$NotificationDeviceTokenUpdatedEvent {
const factory NotificationDeviceTokenUpdatedEvent() = _NotificationDeviceTokenUpdatedEvent;
factory NotificationDeviceTokenUpdatedEvent.fromJson(Map<String, dynamic> json) => _$NotificationDeviceTokenUpdatedEventFromJson(json);
}

@freezed
class NotificationsStatusEvent with _$NotificationsStatusEvent {
abstract class NotificationsStatusEvent with _$NotificationsStatusEvent {
const factory NotificationsStatusEvent({
String? recipientId,
bool? enabled,
Expand Down
2 changes: 1 addition & 1 deletion bccm_core/lib/src/models/analytics/search_performed.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ part 'search_performed.freezed.dart';
part 'search_performed.g.dart';

@freezed
class SearchPerformedEvent with _$SearchPerformedEvent {
abstract class SearchPerformedEvent with _$SearchPerformedEvent {
const factory SearchPerformedEvent({
required String searchText,
required int searchLatency,
Expand Down
6 changes: 3 additions & 3 deletions bccm_core/lib/src/models/analytics/search_result_clicked.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ part 'search_result_clicked.freezed.dart';
part 'search_result_clicked.g.dart';

@freezed
class SearchResultClickedEvent with _$SearchResultClickedEvent {
abstract class SearchResultClickedEvent with _$SearchResultClickedEvent {
const factory SearchResultClickedEvent({
required String searchText,
required int elementPosition,
Expand All @@ -17,14 +17,14 @@ class SearchResultClickedEvent with _$SearchResultClickedEvent {
}

@freezed
class SearchAnalytics with _$SearchAnalytics {
abstract class SearchAnalytics with _$SearchAnalytics {
const factory SearchAnalytics({
required String searchText,
}) = _SearchAnalytics;
}

@freezed
class SearchItemAnalytics with _$SearchItemAnalytics {
abstract class SearchItemAnalytics with _$SearchItemAnalytics {
const factory SearchItemAnalytics({
required int position,
required String type,
Expand Down
6 changes: 3 additions & 3 deletions bccm_core/lib/src/models/analytics/sections.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ part 'sections.freezed.dart';
part 'sections.g.dart';

@freezed
class SectionClickedEvent with _$SectionClickedEvent {
abstract class SectionClickedEvent with _$SectionClickedEvent {
const factory SectionClickedEvent({
required String sectionId,
String? sectionName,
Expand All @@ -24,7 +24,7 @@ class SectionClickedEvent with _$SectionClickedEvent {
}

@freezed
class SectionAnalyticsData with _$SectionAnalyticsData {
abstract class SectionAnalyticsData with _$SectionAnalyticsData {
const factory SectionAnalyticsData({
String? pageCode,
required String id,
Expand All @@ -36,7 +36,7 @@ class SectionAnalyticsData with _$SectionAnalyticsData {
}

@freezed
class SectionItemAnalyticsData with _$SectionItemAnalyticsData {
abstract class SectionItemAnalyticsData with _$SectionItemAnalyticsData {
const factory SectionItemAnalyticsData({
required int position,
required String type,
Expand Down
4 changes: 2 additions & 2 deletions bccm_core/lib/src/models/analytics/shorts.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ part 'shorts.freezed.dart';
part 'shorts.g.dart';

@freezed
class ShortStartedEvent with _$ShortStartedEvent {
abstract class ShortStartedEvent with _$ShortStartedEvent {
const factory ShortStartedEvent({
required String shortId,
required String shortTitle,
Expand All @@ -18,7 +18,7 @@ class ShortStartedEvent with _$ShortStartedEvent {
}

@freezed
class ShortStoppedEvent with _$ShortStoppedEvent {
abstract class ShortStoppedEvent with _$ShortStoppedEvent {
const factory ShortStoppedEvent({
required String shortId,
required String? shortTitle,
Expand Down
6 changes: 3 additions & 3 deletions bccm_core/lib/src/models/auth0/auth0_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ part 'auth0_api.freezed.dart';
part 'auth0_api.g.dart';

@freezed
class Auth0SignupRequestBody with _$Auth0SignupRequestBody {
abstract class Auth0SignupRequestBody with _$Auth0SignupRequestBody {
@JsonSerializable(includeIfNull: false, fieldRename: FieldRename.snake)
factory Auth0SignupRequestBody({
required String clientId,
Expand All @@ -26,7 +26,7 @@ class Auth0SignupRequestBody with _$Auth0SignupRequestBody {
}

@freezed
class Auth0SignupResponse with _$Auth0SignupResponse {
abstract class Auth0SignupResponse with _$Auth0SignupResponse {
const factory Auth0SignupResponse({
// Named after the wire format on purpose. Renaming it to userId is a
// one-line change here but forces every generated file in the package to be
Expand All @@ -41,7 +41,7 @@ class Auth0SignupResponse with _$Auth0SignupResponse {
}

@freezed
class Auth0ApiException with _$Auth0ApiException implements Exception {
abstract class Auth0ApiException with _$Auth0ApiException implements Exception {
const factory Auth0ApiException({
String? name,
String? code,
Expand Down
2 changes: 1 addition & 1 deletion bccm_core/lib/src/models/auth_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:freezed_annotation/freezed_annotation.dart';
part 'auth_state.freezed.dart';

@freezed
class AuthState with _$AuthState {
abstract class AuthState with _$AuthState {
const AuthState._();

const factory AuthState({
Expand Down
2 changes: 1 addition & 1 deletion bccm_core/lib/src/models/user_profile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ part 'user_profile.freezed.dart';
part 'user_profile.g.dart';

@freezed
class UserProfile with _$UserProfile {
abstract class UserProfile with _$UserProfile {
const UserProfile._();
const factory UserProfile({
required String id,
Expand Down
Loading