Example #1
0
        public string GetFavouriteActionLabel(int ID)
        {
            FavouriteActionData existingFavouriteActionData = GetFavouriteActionData(ID);

            if (existingFavouriteActionData != null)
            {
                return(existingFavouriteActionData.Label);
            }
            return(string.Empty);
        }
Example #2
0
        public Action GenerateFavouriteAction(int ID)
        {
            FavouriteActionData existingFavouriteActionData = GetFavouriteActionData(ID);

            if (existingFavouriteActionData != null)
            {
                return(existingFavouriteActionData.Generate());
            }
            return(null);
        }
Example #3
0
        public void SetFavourite(Action action, int ID)
        {
            FavouriteActionData existingFavouriteActionData = GetFavouriteActionData(ID);

            if (existingFavouriteActionData != null)
            {
                existingFavouriteActionData.Update(action);
                return;
            }

            FavouriteActionData newFavouriteActionData = new FavouriteActionData(action, ID);

            allFavouriteActionData.Add(newFavouriteActionData);
        }