public BaseStatus GetFolders(GetFolderParams param) { if (isDebugEnabled) { log.Debug(MethodBase.GetCurrentMethod().Name + " Start"); } BaseStatus stat = new BaseStatus(); stat.Status = "-1"; if (param.AccessToken != null) { if (param.AccessToken.Equals("1234")) { GetFolderStatus fStatus = new GetFolderStatus(); fStatus.Folder = new string[2]; fStatus.Status = "Ok"; fStatus.Folder[0] = "folder1"; fStatus.Folder[1] = "folder2"; if (isDebugEnabled) { log.Info(Resources.Language.GetFolderSuccess); log.Debug(MethodBase.GetCurrentMethod().Name + " End"); } return(fStatus); } else { if (isDebugEnabled) { log.Error(Resources.Language.GetFolderFailure); } } } if (isDebugEnabled) { log.Debug(MethodBase.GetCurrentMethod().Name + " End"); } return(stat); }
public BaseStatus GetFolders(GetFolderParams param) { /* if (isDebugEnabled) * { * log.Debug(MethodBase.GetCurrentMethod().Name + " Start"); * }*/ BaseStatus stat = new BaseStatus(); stat.Status = "-1"; /*if (param.AccessToken != null) * { * if (param.AccessToken.Equals("1234")) * { * GetFolderStatus fStatus = new GetFolderStatus(); * fStatus.Folder = new string[2]; * fStatus.Status = "Ok"; * fStatus.Folder[0] = "folder1"; * fStatus.Folder[1] = "folder2"; * if (isDebugEnabled) * { * log.Info(Resources.Language.GetFolderSuccess); * log.Debug(MethodBase.GetCurrentMethod().Name + " End"); * } * return fStatus; * } * else * { * if (isDebugEnabled) * { * log.Error(Resources.Language.GetFolderFailure); * } * } * } * if (isDebugEnabled) * { * log.Debug(MethodBase.GetCurrentMethod().Name + " End"); * }*/ return(stat); }