C# Class Crosschat.Server.Domain.Entities.User

Inheritance: Entity
显示文件 Open project: EgorBo/CrossChat-Xamarin.Forms Class Usage Examples

Public Methods

Method Description
Ban ( User bannedBy ) : void
BringVoiceBack ( User actor ) : void
ChangeAge ( int age ) : void
ChangeComments ( string comment ) : void
ChangeCountry ( string country ) : void
ChangeHuid ( string huid ) : void
ChangeName ( string newName ) : void
ChangePassword ( string password ) : void
ChangePhoto ( int photoId ) : void
ChangePushUri ( string newPush ) : void
ChangeSex ( bool newSex ) : void
Delete ( ) : void
Devoice ( User devoicedBy ) : void
GrantModeratorship ( ) : void
RemoveModeratorship ( ) : void
ResetPhoto ( User resetAuthor ) : int

Reset user's photo to default (in case if it's some kind of pornography ;)

UnBan ( User actor ) : void
UpdateLastOnline ( ) : void
User ( ) : System
User ( string name, string password, string huid, bool sex, int age, string pushUri, string country, string platform ) : System

Private Methods

Method Description
ValidateRegistration ( ) : void

Method Details

Ban() public method

public Ban ( User bannedBy ) : void
bannedBy User
return void

BringVoiceBack() public method

public BringVoiceBack ( User actor ) : void
actor User
return void

ChangeAge() public method

public ChangeAge ( int age ) : void
age int
return void

ChangeComments() public method

public ChangeComments ( string comment ) : void
comment string
return void

ChangeCountry() public method

public ChangeCountry ( string country ) : void
country string
return void

ChangeHuid() public method

public ChangeHuid ( string huid ) : void
huid string
return void

ChangeName() public method

public ChangeName ( string newName ) : void
newName string
return void

ChangePassword() public method

public ChangePassword ( string password ) : void
password string
return void

ChangePhoto() public method

public ChangePhoto ( int photoId ) : void
photoId int
return void

ChangePushUri() public method

public ChangePushUri ( string newPush ) : void
newPush string
return void

ChangeSex() public method

public ChangeSex ( bool newSex ) : void
newSex bool
return void

Delete() public method

public Delete ( ) : void
return void

Devoice() public method

public Devoice ( User devoicedBy ) : void
devoicedBy User
return void

GrantModeratorship() public method

public GrantModeratorship ( ) : void
return void

RemoveModeratorship() public method

public RemoveModeratorship ( ) : void
return void

ResetPhoto() public method

Reset user's photo to default (in case if it's some kind of pornography ;)
public ResetPhoto ( User resetAuthor ) : int
resetAuthor User
return int

UnBan() public method

public UnBan ( User actor ) : void
actor User
return void

UpdateLastOnline() public method

public UpdateLastOnline ( ) : void
return void

User() public method

public User ( ) : System
return System

User() public method

public User ( string name, string password, string huid, bool sex, int age, string pushUri, string country, string platform ) : System
name string
password string
huid string
sex bool
age int
pushUri string
country string
platform string
return System