C# 클래스 Sequencing.WeatherApp.Controllers.DaoLayer.UserSettingService

상속: ISettingService
파일 보기 프로젝트 열기: SequencingDOTcom/Weather-My-Way-RTP-app

공개 프로퍼티들

프로퍼티 타입 설명
logger log4net.ILog

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
UpdateUserSettingsImpl ( SendInfo newInfo ) : SendInfo

Updates user settings in the database

비공개 메소드들

메소드 설명
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

메소드 상세

DeviceTokenSetting() 공개 메소드

public DeviceTokenSetting ( SettingsRetrieveDTO settingsDTO, long userId ) : string
settingsDTO SettingsRetrieveDTO
userId long
리턴 string

GetInfo() 공개 메소드

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

ParseTimeZoneOffset() 공개 메소드

public ParseTimeZoneOffset ( string offset ) : decimal
offset string
리턴 decimal

RetrieveSettings() 공개 메소드

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

SetUserDataFile() 공개 메소드

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

SetUserDataFileExt() 공개 메소드

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

SetUserLocation() 공개 메소드

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

SetUserLocationExt() 공개 메소드

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

SubscribePushNotification() 공개 메소드

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
리턴 void

UpdateUserSettings() 공개 메소드

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

UpdateUserSettingsImpl() 보호된 메소드

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

프로퍼티 상세

logger 공개적으로 프로퍼티

public ILog,log4net logger
리턴 log4net.ILog