C# Class Sequencing.WeatherApp.Controllers.DaoLayer.UserSettingService

Inheritance: ISettingService
ファイルを表示 Open project: SequencingDOTcom/Weather-My-Way-RTP-app

Public Properties

Property Type Description
logger log4net.ILog

Public Methods

Method Description
DeviceTokenSetting ( SettingsRetrieveDTO settingsDTO, long userId ) : string
GetInfo ( string name ) : SendInfo
ParseTimeZoneOffset ( string offset ) : decimal
RetrieveSettings ( SettingsRetrieveDTO settingsDTO ) : SendInfo
SetUserDataFile ( string selectedName, string selectedId, string name ) : void

Change user file

SetUserDataFileExt ( string selectedName, string selectedId, string token ) : void

Extension for user file change

SetUserLocation ( string city, string name ) : void

Set user location

SetUserLocationExt ( string city, string userToken ) : void

Extension for user location set

SubscribePushNotification ( string token, DeviceType deviceType, SendInfo info, ApplicationType appType ) : void

Subscribes push notifications

UpdateUserSettings ( SendInfo newInfo ) : void

Protected Methods

Method Description
UpdateUserSettingsImpl ( SendInfo newInfo ) : SendInfo

Updates user settings in the database

Private Methods

Method Description
GetUserSettings ( TokenInfo tokenInfo ) : SendInfo

Retrieve user settings from database

ProcessSubscribe ( string newToken, DeviceType deviceType, string accessToken, ApplicationType appType ) : void
ProcessUpdate ( string oldToken, string newToken, long userId, DeviceType deviceType, ApplicationType appType ) : string
ShouldSendInitialEmail ( SendInfo info, string email, bool emailChk ) : bool

Determines whether initial invitation email should be sent to a user

ShouldSendInitialSms ( SendInfo info, string phone, bool smsChk ) : bool

Determines whether initial invitation SMS should be sent to a user

Method Details

DeviceTokenSetting() public method

public DeviceTokenSetting ( SettingsRetrieveDTO settingsDTO, long userId ) : string
settingsDTO SettingsRetrieveDTO
userId long
return string

GetInfo() public method

public GetInfo ( string name ) : SendInfo
name string
return Sequencing.WeatherApp.Models.SendInfo

ParseTimeZoneOffset() public method

public ParseTimeZoneOffset ( string offset ) : decimal
offset string
return decimal

RetrieveSettings() public method

public RetrieveSettings ( SettingsRetrieveDTO settingsDTO ) : SendInfo
settingsDTO SettingsRetrieveDTO
return Sequencing.WeatherApp.Models.SendInfo

SetUserDataFile() public method

Change user file
public SetUserDataFile ( string selectedName, string selectedId, string name ) : void
selectedName string
selectedId string
name string
return void

SetUserDataFileExt() public method

Extension for user file change
public SetUserDataFileExt ( string selectedName, string selectedId, string token ) : void
selectedName string
selectedId string
token string
return void

SetUserLocation() public method

Set user location
public SetUserLocation ( string city, string name ) : void
city string
name string
return void

SetUserLocationExt() public method

Extension for user location set
public SetUserLocationExt ( string city, string userToken ) : void
city string
userToken string
return void

SubscribePushNotification() public method

Subscribes push notifications
public SubscribePushNotification ( string token, DeviceType deviceType, SendInfo info, ApplicationType appType ) : void
token string
deviceType DeviceType
info Sequencing.WeatherApp.Models.SendInfo
appType ApplicationType
return void

UpdateUserSettings() public method

public UpdateUserSettings ( SendInfo newInfo ) : void
newInfo Sequencing.WeatherApp.Models.SendInfo
return void

UpdateUserSettingsImpl() protected method

Updates user settings in the database
protected UpdateUserSettingsImpl ( SendInfo newInfo ) : SendInfo
newInfo Sequencing.WeatherApp.Models.SendInfo
return Sequencing.WeatherApp.Models.SendInfo

Property Details

logger public_oe property

public ILog,log4net logger
return log4net.ILog