C# Class Membership.Service.UserMembershipService

Inheritance: IUserMembershipService
Exibir arquivo Open project: serdarb/Membership-Service

Private Properties

Property Type Description

Public Methods

Method 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 method

The add address.
///
public AddAddress ( AddressDto dto ) : int
dto Membership.Contract.AddressDto /// The dto. ///
return int

AddPhone() public method

public AddPhone ( PhoneDto dto ) : bool
dto Membership.Contract.PhoneDto
return bool

AuthUser() public method

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

ChangePassword() public method

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

CreateUser() public method

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

DeleteAddress() public method

public DeleteAddress ( AddressDto dto ) : bool
dto Membership.Contract.AddressDto
return bool

DeletePhone() public method

public DeletePhone ( PhoneDto dto ) : bool
dto Membership.Contract.PhoneDto
return bool

DeleteUser() public method

The delete user.
public DeleteUser ( string email ) : bool
email string /// The email. ///
return bool

DoesUserEmailExists() public method

The does user email exists.
public DoesUserEmailExists ( string email ) : bool
email string /// The email. ///
return bool

GetAddressById() public method

public GetAddressById ( int id ) : AddressDto
id int
return Membership.Contract.AddressDto

GetAddresses() public method

public GetAddresses ( string email ) : List
email string
return List

GetAddressesByUserId() public method

public GetAddressesByUserId ( int id ) : List
id int
return List

GetPhones() public method

public GetPhones ( string email ) : List
email string
return List

GetPhonesByUserId() public method

public GetPhonesByUserId ( int id ) : List
id int
return List

GetTopXByPoint() public method

Gets from db.
public GetTopXByPoint ( int count ) : List
count int
return List

GetTopXByPointWithUser() public method

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

GetUser() public method

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

GetUserByFacebookId() public method

public GetUserByFacebookId ( string fid ) : UserDto
fid string
return Membership.Contract.UserDto

GetUserById() public method

public GetUserById ( int id ) : UserDto
id int
return Membership.Contract.UserDto

GetUserEmailById() public method

public GetUserEmailById ( int id ) : string
id int
return string

GetUserIdByEmail() public method

public GetUserIdByEmail ( string email ) : int
email string
return int

InviteSucceeded() public method

public InviteSucceeded ( string refererUserEmail, string invitedEmail ) : bool
refererUserEmail string
invitedEmail string
return bool

InviteUser() public method

public InviteUser ( string refererUserEmail, string invitedEmail ) : bool
refererUserEmail string
invitedEmail string
return bool

IsPasswordResetRequestValid() public method

public IsPasswordResetRequestValid ( string email, string guid ) : bool
email string
guid string
return bool

RequestPasswordReset() public method

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

UpdateAddress() public method

public UpdateAddress ( AddressDto dto ) : bool
dto Membership.Contract.AddressDto
return bool

UpdatePhone() public method

public UpdatePhone ( PhoneDto dto ) : bool
dto Membership.Contract.PhoneDto
return bool

UpdateUser() public method

public UpdateUser ( UserDto dto ) : bool
dto Membership.Contract.UserDto
return bool

UpdateUserBirthday() public method

public UpdateUserBirthday ( string email, System.DateTime birthday ) : bool
email string
birthday System.DateTime
return bool

UpdateUserEmail() public method

public UpdateUserEmail ( string oldEmail, string newEmail ) : bool
oldEmail string
newEmail string
return bool

UpdateUserNames() public method

public UpdateUserNames ( string email, string newNames ) : bool
email string
newNames string
return bool

UpdateUserPassword() public method

public UpdateUserPassword ( string email, string newPassword ) : bool
email string
newPassword string
return bool

UpdateUserPhone() public method

public UpdateUserPhone ( string email, string oldPhone, string newPhone ) : bool
email string
oldPhone string
newPhone string
return bool

UpdateUserPoint() public method

public UpdateUserPoint ( PointHistoryDto dto ) : bool
dto Membership.Contract.PointHistoryDto
return bool

UserMembershipService() public method

public UserMembershipService ( ) : System
return System