public BaseStatus SignIn(SignInParams param) { if (isDebugEnabled) { log.Debug(MethodBase.GetCurrentMethod().Name + " Start"); } BaseStatus status = new BaseStatus(); status.Status = "-1"; if (param.Connector != null && param.Login != null && param.Password != null) { if (param.Connector.Equals("GoogleDrive") && param.Login.Equals("*****@*****.**") && param.Password.Equals("123456")) { SignInStatus sStatus = new SignInStatus(); sStatus.Status = "Ok"; sStatus.AccessToken = "12345678990abcdefgh"; if (isDebugEnabled) { log.Info(Resources.Language.SignInSuccess); log.Debug(MethodBase.GetCurrentMethod().Name + " End"); } return(sStatus); } else { if (isDebugEnabled) { log.Error(Resources.Language.SignInFailure); } } } if (isDebugEnabled) { log.Debug(MethodBase.GetCurrentMethod().Name + " End"); } return(status); }
public BaseStatus showMe() { if (isDebugEnabled) { log.Debug(MethodBase.GetCurrentMethod().Name + " Start"); } SignInStatus stat = new SignInStatus(); stat.Status = "Ok"; stat.AccessToken = "1234"; //if (log.IsDebugEnabled) log.Debug("This is a debug message"); if (log.IsInfoEnabled) { log.Debug("showMe() is called"); } if (isDebugEnabled) { log.Debug(MethodBase.GetCurrentMethod().Name + " End"); } return(stat); }