mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2025-06-20 16:45:16 +00:00
Can set (update) general settings
This commit is contained in:
@ -16,7 +16,6 @@ export enum UserPageStatus {
|
||||
|
||||
export interface UserInfo {
|
||||
id: number,
|
||||
email: string;
|
||||
firstName: string,
|
||||
lastName: string,
|
||||
timeCreate: number,
|
||||
@ -28,7 +27,21 @@ export interface UserInfo {
|
||||
publicNote ?: string,
|
||||
blockComments : boolean,
|
||||
allowPostsFromFriends: boolean,
|
||||
allowMails: boolean
|
||||
}
|
||||
|
||||
export interface GeneralSettings {
|
||||
id: number,
|
||||
email ?: string,
|
||||
firstName: string,
|
||||
lastName: string,
|
||||
pageStatus: UserPageStatus,
|
||||
blockComments: boolean,
|
||||
allowPostsFromFriends: boolean,
|
||||
friendsListPublic: boolean,
|
||||
personnalWebsite ?: string,
|
||||
virtualDirectory: string,
|
||||
allowMails: boolean,
|
||||
publicNote ?: string
|
||||
}
|
||||
|
||||
export interface SecuritySettings {
|
||||
@ -40,7 +53,7 @@ export interface SecuritySettings {
|
||||
}
|
||||
|
||||
|
||||
export interface UserBuilder extends UserInfo, SecuritySettings {
|
||||
export interface UserBuilder extends UserInfo, SecuritySettings, GeneralSettings {
|
||||
|
||||
}
|
||||
|
||||
@ -75,7 +88,7 @@ export class User implements UserBuilder {
|
||||
|
||||
|
||||
get isPublic() : boolean {
|
||||
return this.pageStatus == UserPageStatus.PUBLIC;
|
||||
return this.pageStatus != UserPageStatus.PRIVATE;
|
||||
}
|
||||
|
||||
get isOpen() : boolean {
|
||||
|
Reference in New Issue
Block a user