public static BaseAction ActionToClass(string action) { BaseAction actionClass; switch (action) { case "play": actionClass = new PlayAction(); break; case "hug": actionClass = new HugAction(); break; case "feed": actionClass = new FeedAction(); break; case "sleep": actionClass = new SleepAction(); break; default: return(null); } return(actionClass); }
public ItemBasicInformationFeedItemInfo(FeedAction action) { switch (action) { case FeedAction.CreateItem: default: Action = "Create Item"; break; case FeedAction.UpdateItem: Action = "Update Item"; break; case FeedAction.UpdateAppendImage: Action = "Update/Append Image"; break; case FeedAction.ReplaceImage: Action = "Replace Image"; break; } }
public ItemCreationUpdateFeedItemInfo(FeedAction action) { Action = action; }
/// <summary> /// A valid callback specified feed status /// </summary> public SocialLinkEventArgs(FeedAction action) { Action = action; }