package dto

// TopAstrologerResponse is one card in the website home page's
// "expert astrologers, ready now" block (GET /api/user/astrologers/top).
type TopAstrologerResponse struct {
	Rank         int     `json:"rank"`
	ID           uint    `json:"id"`
	Name         string  `json:"name"`
	ProfileImage string  `json:"profileImage"`
	Experience   float64 `json:"experience"`

	PrimarySkill  string `json:"primarySkill"`
	AllSkill      string `json:"allSkill"`
	LanguageKnown string `json:"languageKnown"`

	ChatRate      int `json:"chatRate"`
	CallRate      int `json:"callRate"`
	VideoCallRate int `json:"videoCallRate"`

	// Average of the astrologer's reviews, 1 decimal.
	Rating      float64 `json:"rating"`
	RatingCount int64   `json:"ratingCount"`

	// Completed (attended) sessions.
	ChatOrders  int64 `json:"chatOrders"`
	CallOrders  int64 `json:"callOrders"`
	TotalOrders int64 `json:"totalOrders"`

	// ONLINE, BUSY or OFFLINE, from the astrologers row.
	Status   string `json:"status"`
	IsOnline bool   `json:"isOnline"`
	IsBusy   bool   `json:"isBusy"`
}
