Mise à jour de 'Diagramme de classes du domaine (client)'

master
Emre KARTAL 1 year ago
parent 1dfc84a0fc
commit 93ecf1ac35

@ -7,10 +7,10 @@ title Modèle - Diagramme de classes
package "Model" {
class User {
+String id
+String username
+String email
+Int coins
-id : String
-username : String
-email : String
-coins : Int
}
enum BetStatus{
WAITING
@ -18,37 +18,37 @@ package "Model" {
FINISHED
}
abstract class Bet {
+String id
+String theme
+String phrase
+Date endRegistration
+Date endBet
+Bool isPrivate
+BetStatus status
-id : String
-theme : String
-phrase : String
-endRegistration : Date
-endBet : Date
-isPrivate : Bool
-status : BetStatus
}
class YesNoBet
class CustomBet {
+List<String> possibleResponses
-possibleResponses : List<String>
}
class MatchBet {
+String nameTeam1
+String nameTeam2
-nameTeam1 : String
-nameTeam2 : String
}
class BetDetail
class BetResult {
+Int? losings
+Int? winnings
-losings : Int?
-winnings : Int?
}
class Participation {
+String response
+Int stake
-response : String
-stake : Int
}
class AnswerDetail {
+String response
+Int totalParticipants
+Int totalStakes
+Int highestStake
+Float odds
-response : String
-totalParticipants : Int
-totalStakes : Int
-highestStake : Int
-odds : Float
}
Bet <|-- YesNoBet

Loading…
Cancel
Save