pull/22/head
samuel 1 year ago
parent 36051ebd83
commit 5b85ddce7d

@ -1,14 +1,15 @@
@startuml
class Account {
- email: String
- phoneNumber: String
- email: string
- phoneNumber: string
- id: int
+ setMailAddress(String)
+ getMailAddress(): String
+ getPhoneNumber(): String
+ setPhoneNumber(String)
+ __construct (email : string, ???)
+ setMailAddress(string)
+ getMailAddress(): string
+ getPhoneNumber(): string
+ setPhoneNumber(string)
+ getUser(): AccountUser
+ getId(): int
}
@ -17,17 +18,18 @@ Account --> "- user" AccountUser
Account --> "- teams *" Team
interface User {
+ getName(): String
+ getName(): string
+ getProfilePicture(): Url
+ getAge(): int
}
class AccountUser {
- name: String
- name: string
- profilePicture: Url
- age: int
+ setName(String)
+ __construct(name : string, age : int, profilePicture : string)
+ setName(string)
+ setProfilePicture(URI)
+ setAge(int)
}
@ -36,6 +38,7 @@ AccountUser ..|> User
class Member {
- userId: int
+ __construct(role : MemberRole)
+ getUserId(): int
+ getRole(): MemberRole
}
@ -48,10 +51,11 @@ enum MemberRole {
}
class Team {
- name: String
- name: string
- picture: Url
+ getName(): String
+ __construct(name : string, picture : string, mainColor : Color, secondColor : Color,members : array)
+ getName(): string
+ getPicture(): Url
+ getMainColor(): Color
+ getSecondColor(): Color
@ -59,7 +63,7 @@ class Team {
}
Team --> "- mainColor" Color
Team --> "- secondaryColor" Color
Team --> "- secondColor" Color
Team --> "- members *" Member
class Color {
@ -70,6 +74,7 @@ class Color {
class AuthController{
+ __construct(model : AuthModel)
+ displayRegister() : HttpResponse
+ displayBadFields(viewName : string, fails : array) : HttpResponse
+ confirmRegister(request : array) : HttpResponse
@ -80,6 +85,7 @@ AuthController --> "- model" AuthModel
class AuthModel{
+ __construct(gateway : AuthGateway)
+ register(username : string, password : string, confirmPassword : string, email : string): array
+ getAccount(email : string):array
+ login(email : string, password : string)
@ -89,7 +95,8 @@ AuthModel --> "- gateway" AuthGateway
class AuthGateway{
-con : Connection
+ mailExists(email : string) : bool
+ __construct (con : Connection)
+ mailExist(email : string) : bool
+ insertAccount(username : string, hash : string, email : string)
+ getHash(email : string):string
+ getAccount (email : string): array

@ -1,10 +1,11 @@
@startuml
class Team {
- name: String
- name: string
- picture: Url
- members: array<int, MemberRole>
+ getName(): String
+ __construct(name : string, picture : string, mainColor : Colo, secondColor : Color)
+ getName(): string
+ getPicture(): Url
+ getMainColor(): Color
+ getSecondColor(): Color

Loading…
Cancel
Save