C# Class Membership.Service.UserMembershipService

Inheritance: IUserMembershipService
Afficher le fichier Open project: serdarb/Membership-Service

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
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

Method Details

AddAddress() public méthode

The add address.
///
public AddAddress ( AddressDto dto ) : int
dto Membership.Contract.AddressDto /// The dto. ///
Résultat int

AddPhone() public méthode

public AddPhone ( PhoneDto dto ) : bool
dto Membership.Contract.PhoneDto
Résultat bool

AuthUser() public méthode

The auth user.
public AuthUser ( string userName, string passwordHash ) : bool
userName string /// The user name. ///
passwordHash string /// The password hash. ///
Résultat bool

ChangePassword() public méthode

The change password for user.
public ChangePassword ( string email, string newPasswordHash ) : bool
email string /// The email. ///
newPasswordHash string /// The new password hash. ///
Résultat bool

CreateUser() public méthode

The create user.
public CreateUser ( UserDto dto ) : int
dto Membership.Contract.UserDto /// The userDto. ///
Résultat int

DeleteAddress() public méthode

public DeleteAddress ( AddressDto dto ) : bool
dto Membership.Contract.AddressDto
Résultat bool

DeletePhone() public méthode

public DeletePhone ( PhoneDto dto ) : bool
dto Membership.Contract.PhoneDto
Résultat bool

DeleteUser() public méthode

The delete user.
public DeleteUser ( string email ) : bool
email string /// The email. ///
Résultat bool

DoesUserEmailExists() public méthode

The does user email exists.
public DoesUserEmailExists ( string email ) : bool
email string /// The email. ///
Résultat bool

GetAddressById() public méthode

public GetAddressById ( int id ) : AddressDto
id int
Résultat Membership.Contract.AddressDto

GetAddresses() public méthode

public GetAddresses ( string email ) : List
email string
Résultat List

GetAddressesByUserId() public méthode

public GetAddressesByUserId ( int id ) : List
id int
Résultat List

GetPhones() public méthode

public GetPhones ( string email ) : List
email string
Résultat List

GetPhonesByUserId() public méthode

public GetPhonesByUserId ( int id ) : List
id int
Résultat List

GetTopXByPoint() public méthode

Gets from db.
public GetTopXByPoint ( int count ) : List
count int
Résultat List

GetTopXByPointWithUser() public méthode

Gets from Dictionary Cache.
public GetTopXByPointWithUser ( int count, string email ) : PointTableDto
count int
email string
Résultat Membership.Contract.PointTableDto

GetUser() public méthode

The get user. Give the users email and get the dto.
public GetUser ( string email ) : UserDto
email string /// The user's email. ///
Résultat Membership.Contract.UserDto

GetUserByFacebookId() public méthode

public GetUserByFacebookId ( string fid ) : UserDto
fid string
Résultat Membership.Contract.UserDto

GetUserById() public méthode

public GetUserById ( int id ) : UserDto
id int
Résultat Membership.Contract.UserDto

GetUserEmailById() public méthode

public GetUserEmailById ( int id ) : string
id int
Résultat string

GetUserIdByEmail() public méthode

public GetUserIdByEmail ( string email ) : int
email string
Résultat int

InviteSucceeded() public méthode

public InviteSucceeded ( string refererUserEmail, string invitedEmail ) : bool
refererUserEmail string
invitedEmail string
Résultat bool

InviteUser() public méthode

public InviteUser ( string refererUserEmail, string invitedEmail ) : bool
refererUserEmail string
invitedEmail string
Résultat bool

IsPasswordResetRequestValid() public méthode

public IsPasswordResetRequestValid ( string email, string guid ) : bool
email string
guid string
Résultat bool

RequestPasswordReset() public méthode

The request password reset for user.
public RequestPasswordReset ( string email ) : bool
email string /// The email. ///
Résultat bool

UpdateAddress() public méthode

public UpdateAddress ( AddressDto dto ) : bool
dto Membership.Contract.AddressDto
Résultat bool

UpdatePhone() public méthode

public UpdatePhone ( PhoneDto dto ) : bool
dto Membership.Contract.PhoneDto
Résultat bool

UpdateUser() public méthode

public UpdateUser ( UserDto dto ) : bool
dto Membership.Contract.UserDto
Résultat bool

UpdateUserBirthday() public méthode

public UpdateUserBirthday ( string email, System.DateTime birthday ) : bool
email string
birthday System.DateTime
Résultat bool

UpdateUserEmail() public méthode

public UpdateUserEmail ( string oldEmail, string newEmail ) : bool
oldEmail string
newEmail string
Résultat bool

UpdateUserNames() public méthode

public UpdateUserNames ( string email, string newNames ) : bool
email string
newNames string
Résultat bool

UpdateUserPassword() public méthode

public UpdateUserPassword ( string email, string newPassword ) : bool
email string
newPassword string
Résultat bool

UpdateUserPhone() public méthode

public UpdateUserPhone ( string email, string oldPhone, string newPhone ) : bool
email string
oldPhone string
newPhone string
Résultat bool

UpdateUserPoint() public méthode

public UpdateUserPoint ( PointHistoryDto dto ) : bool
dto Membership.Contract.PointHistoryDto
Résultat bool

UserMembershipService() public méthode

public UserMembershipService ( ) : System
Résultat System