dto

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BroadcastResponseDto

type BroadcastResponseDto struct {
	ApnsRequestId string `json:"apns_request_id"`
	ApnsUniqueId  string `json:"apns_unique_id"`
	Body          string `json:"body"`
}

type FollowAthleteRequestDto

type FollowAthleteRequestDto struct {
	AthleteId primitive.ObjectID `json:"athlete"`
	Follow    bool               `json:"follow,omitempty"`
}

type MeetingNotificationRequestDto added in v0.1.4

type MeetingNotificationRequestDto struct {
	Subtitle          string `json:"subtitle"`
	Message           string `json:"message"`
	MessageType       string `json:"message_type"`       // like athlete, meeting, schedule or favourites (see settings)
	InterruptionLevel string `json:"interruption_level"` // passive, active, time-sensitive
}

type NotificationRequestDto

type NotificationRequestDto struct {
	Title             string `json:"title"`
	Subtitle          string `json:"subtitle"`
	Message           string `json:"message"`
	InterruptionLevel string `json:"interruption_level"` // passive, active, time-sensitive
}

type NotificationResponseDto

type NotificationResponseDto struct {
	ApnsId string `json:"apns_id"`
	Body   string `json:"body"`
}

type NotificationsResponseDto added in v0.1.4

type NotificationsResponseDto struct {
	UserCount             int `json:"user_count"`
	NotificationUserCount int `json:"notification_user_count"`
	SuccessCount          int `json:"success_count"`
}

type RegisterNotificationUserRequestDto

type RegisterNotificationUserRequestDto struct {
	Token    string                     `json:"token,omitempty"`
	Device   model.Device               `json:"device,omitempty"`
	Settings model.NotificationSettings `json:"settings,omitempty"`
}

type SetLanguageRequestDto

type SetLanguageRequestDto struct {
	Language string `json:"language,omitempty"`
}

type SetMeRequestDto

type SetMeRequestDto struct {
	AthleteId primitive.ObjectID `json:"athlete"`
	Set       bool               `json:"set,omitempty"`
}

type SetThemeRequestDto

type SetThemeRequestDto struct {
	Theme string `json:"theme,omitempty"`
}

type SubscribeMeetingRequestDto

type SubscribeMeetingRequestDto struct {
	Meeting   string `json:"meeting"`
	Subscribe bool   `json:"subscribe,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL