public override bool OnCheck() { Value v = GetStory.GetValue(ValueName); if (v != null) { return(v.Compare(Value, Compare)); } return(false); }
protected override EnumResult OnStart() { if (Scope == ValueScope.Mission) { return(GetMission.AddValue(ValueName, ValueType, Value).ToEnumResult()); } else if (Scope == ValueScope.Story) { return(GetStory.AddValue(ValueName, ValueType, Value).ToEnumResult()); } return(EnumResult.Failed); }
public string GetStoryPic(int UserID) { if (SecureAuthentication != null) { int Output = CheckLoginReturnUserId(SecureAuthentication).ValueFromSQL; if (Output > 0) { GetStory proc = new GetStory(); return("{\"StoryList\" : " + Serialize(proc.Get_StoryPic(UserID)) + "}"); } else { return(Serialize(new AuthResponse(0, Output == -1 ? "Authentication is NULL" : "Invalid Authentication"))); } } return(Serialize(new AuthResponse(0, "Authentication information not provided."))); }