コード例 #1
0
            private void Subscriber(StoryEvent param)
            {
                switch (param.Type)
                {
                case StoryEventType.Fav:
                    DataRequester.SetFavoriteStory(CurrentStoryId, param.IsChecked);
                    break;

                case StoryEventType.Like:
                    DataRequester.SetStoryLike(CurrentStoryId, param.IsChecked);
                    break;

                case StoryEventType.Night:
                    if (VM != null)
                    {
                        VM.RequestMainContent();
                    }
                    break;
                }
            }