|
|
|
@ -29,18 +29,11 @@ class Account {
|
|
|
|
|
class Member {
|
|
|
|
|
- userId: int
|
|
|
|
|
- teamId: int
|
|
|
|
|
|
|
|
|
|
+ __construct(role : MemberRole)
|
|
|
|
|
- role : string
|
|
|
|
|
+ __construct(role : string)
|
|
|
|
|
+ getUserId(): int
|
|
|
|
|
+ getTeamId(): int
|
|
|
|
|
+ getRole(): MemberRole
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Member --> "- role" MemberRole
|
|
|
|
|
|
|
|
|
|
enum MemberRole {
|
|
|
|
|
PLAYER
|
|
|
|
|
COACH
|
|
|
|
|
+ getRole(): string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -48,28 +41,34 @@ class TeamInfo {
|
|
|
|
|
- creationDate: int
|
|
|
|
|
- name: string
|
|
|
|
|
- picture: string
|
|
|
|
|
|
|
|
|
|
- mainColor : string
|
|
|
|
|
- secondColor : string
|
|
|
|
|
+ getName(): string
|
|
|
|
|
+ getPicture(): string
|
|
|
|
|
+ getMainColor(): Color
|
|
|
|
|
+ getSecondColor(): Color
|
|
|
|
|
+ getMainColor(): string
|
|
|
|
|
+ getSecondColor(): string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TeamInfo --> "- mainColor" Color
|
|
|
|
|
TeamInfo --> "- secondaryColor" Color
|
|
|
|
|
|
|
|
|
|
class Team {
|
|
|
|
|
getInfo(): TeamInfo
|
|
|
|
|
listMembers(): Member[]
|
|
|
|
|
+ __construct()
|
|
|
|
|
+ getInfo(): TeamInfo
|
|
|
|
|
+ listMembers(): Member[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Team --> "- info" TeamInfo
|
|
|
|
|
Team --> "- members *" Member
|
|
|
|
|
|
|
|
|
|
class Color {
|
|
|
|
|
- value: int
|
|
|
|
|
class User{
|
|
|
|
|
- id : int
|
|
|
|
|
- name : string
|
|
|
|
|
- email : string
|
|
|
|
|
- profilePicture : string
|
|
|
|
|
|
|
|
|
|
+ getValue(): int
|
|
|
|
|
+ __construct(id : int,name : string,email: string,profilePicture:string)
|
|
|
|
|
+ getId() : id
|
|
|
|
|
+ getName() : string
|
|
|
|
|
+ getEmail() : string
|
|
|
|
|
+ getProfilePicture() : string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@enduml
|