C# Класс Membership.Service.UserMembershipService

Наследование: IUserMembershipService
Показать файл Открыть проект

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
AddAddress ( AddressDto dto ) : int

The add address.

AddPhone ( PhoneDto dto ) : bool
AuthUser ( string userName, string passwordHash ) : bool

The auth user.

ChangePassword ( string email, string newPasswordHash ) : bool

The change password for user.

CreateUser ( UserDto dto ) : int

The create user.

DeleteAddress ( AddressDto dto ) : bool
DeletePhone ( PhoneDto dto ) : bool
DeleteUser ( string email ) : bool

The delete user.

DoesUserEmailExists ( string email ) : bool

The does user email exists.

GetAddressById ( int id ) : AddressDto
GetAddresses ( string email ) : List
GetAddressesByUserId ( int id ) : List
GetPhones ( string email ) : List
GetPhonesByUserId ( int id ) : List
GetTopXByPoint ( int count ) : List

Gets from db.

GetTopXByPointWithUser ( int count, string email ) : PointTableDto

Gets from Dictionary Cache.

GetUser ( string email ) : UserDto

The get user. Give the users email and get the dto.

GetUserByFacebookId ( string fid ) : UserDto
GetUserById ( int id ) : UserDto
GetUserEmailById ( int id ) : string
GetUserIdByEmail ( string email ) : int
InviteSucceeded ( string refererUserEmail, string invitedEmail ) : bool
InviteUser ( string refererUserEmail, string invitedEmail ) : bool
IsPasswordResetRequestValid ( string email, string guid ) : bool
RequestPasswordReset ( string email ) : bool

The request password reset for user.

UpdateAddress ( AddressDto dto ) : bool
UpdatePhone ( PhoneDto dto ) : bool
UpdateUser ( UserDto dto ) : bool
UpdateUserBirthday ( string email, System.DateTime birthday ) : bool
UpdateUserEmail ( string oldEmail, string newEmail ) : bool
UpdateUserNames ( string email, string newNames ) : bool
UpdateUserPassword ( string email, string newPassword ) : bool
UpdateUserPhone ( string email, string oldPhone, string newPhone ) : bool
UpdateUserPoint ( PointHistoryDto dto ) : bool
UserMembershipService ( ) : System

Описание методов

AddAddress() публичный Метод

The add address.
///
public AddAddress ( AddressDto dto ) : int
dto Membership.Contract.AddressDto /// The dto. ///
Результат int

AddPhone() публичный Метод

public AddPhone ( PhoneDto dto ) : bool
dto Membership.Contract.PhoneDto
Результат bool

AuthUser() публичный Метод

The auth user.
public AuthUser ( string userName, string passwordHash ) : bool
userName string /// The user name. ///
passwordHash string /// The password hash. ///
Результат bool

ChangePassword() публичный Метод

The change password for user.
public ChangePassword ( string email, string newPasswordHash ) : bool
email string /// The email. ///
newPasswordHash string /// The new password hash. ///
Результат bool

CreateUser() публичный Метод

The create user.
public CreateUser ( UserDto dto ) : int
dto Membership.Contract.UserDto /// The userDto. ///
Результат int

DeleteAddress() публичный Метод

public DeleteAddress ( AddressDto dto ) : bool
dto Membership.Contract.AddressDto
Результат bool

DeletePhone() публичный Метод

public DeletePhone ( PhoneDto dto ) : bool
dto Membership.Contract.PhoneDto
Результат bool

DeleteUser() публичный Метод

The delete user.
public DeleteUser ( string email ) : bool
email string /// The email. ///
Результат bool

DoesUserEmailExists() публичный Метод

The does user email exists.
public DoesUserEmailExists ( string email ) : bool
email string /// The email. ///
Результат bool

GetAddressById() публичный Метод

public GetAddressById ( int id ) : AddressDto
id int
Результат Membership.Contract.AddressDto

GetAddresses() публичный Метод

public GetAddresses ( string email ) : List
email string
Результат List

GetAddressesByUserId() публичный Метод

public GetAddressesByUserId ( int id ) : List
id int
Результат List

GetPhones() публичный Метод

public GetPhones ( string email ) : List
email string
Результат List

GetPhonesByUserId() публичный Метод

public GetPhonesByUserId ( int id ) : List
id int
Результат List

GetTopXByPoint() публичный Метод

Gets from db.
public GetTopXByPoint ( int count ) : List
count int
Результат List

GetTopXByPointWithUser() публичный Метод

Gets from Dictionary Cache.
public GetTopXByPointWithUser ( int count, string email ) : PointTableDto
count int
email string
Результат Membership.Contract.PointTableDto

GetUser() публичный Метод

The get user. Give the users email and get the dto.
public GetUser ( string email ) : UserDto
email string /// The user's email. ///
Результат Membership.Contract.UserDto

GetUserByFacebookId() публичный Метод

public GetUserByFacebookId ( string fid ) : UserDto
fid string
Результат Membership.Contract.UserDto

GetUserById() публичный Метод

public GetUserById ( int id ) : UserDto
id int
Результат Membership.Contract.UserDto

GetUserEmailById() публичный Метод

public GetUserEmailById ( int id ) : string
id int
Результат string

GetUserIdByEmail() публичный Метод

public GetUserIdByEmail ( string email ) : int
email string
Результат int

InviteSucceeded() публичный Метод

public InviteSucceeded ( string refererUserEmail, string invitedEmail ) : bool
refererUserEmail string
invitedEmail string
Результат bool

InviteUser() публичный Метод

public InviteUser ( string refererUserEmail, string invitedEmail ) : bool
refererUserEmail string
invitedEmail string
Результат bool

IsPasswordResetRequestValid() публичный Метод

public IsPasswordResetRequestValid ( string email, string guid ) : bool
email string
guid string
Результат bool

RequestPasswordReset() публичный Метод

The request password reset for user.
public RequestPasswordReset ( string email ) : bool
email string /// The email. ///
Результат bool

UpdateAddress() публичный Метод

public UpdateAddress ( AddressDto dto ) : bool
dto Membership.Contract.AddressDto
Результат bool

UpdatePhone() публичный Метод

public UpdatePhone ( PhoneDto dto ) : bool
dto Membership.Contract.PhoneDto
Результат bool

UpdateUser() публичный Метод

public UpdateUser ( UserDto dto ) : bool
dto Membership.Contract.UserDto
Результат bool

UpdateUserBirthday() публичный Метод

public UpdateUserBirthday ( string email, System.DateTime birthday ) : bool
email string
birthday System.DateTime
Результат bool

UpdateUserEmail() публичный Метод

public UpdateUserEmail ( string oldEmail, string newEmail ) : bool
oldEmail string
newEmail string
Результат bool

UpdateUserNames() публичный Метод

public UpdateUserNames ( string email, string newNames ) : bool
email string
newNames string
Результат bool

UpdateUserPassword() публичный Метод

public UpdateUserPassword ( string email, string newPassword ) : bool
email string
newPassword string
Результат bool

UpdateUserPhone() публичный Метод

public UpdateUserPhone ( string email, string oldPhone, string newPhone ) : bool
email string
oldPhone string
newPhone string
Результат bool

UpdateUserPoint() публичный Метод

public UpdateUserPoint ( PointHistoryDto dto ) : bool
dto Membership.Contract.PointHistoryDto
Результат bool

UserMembershipService() публичный Метод

public UserMembershipService ( ) : System
Результат System