Exemplo n.º 1
0
        void ProcessChild(UserStatus status, ChannelStatusUpdate child, int statusType)
        {
            var childStatus = ParseStatusUpdate(child, statusType);

            childStatus.ParentKey = status.StatusKey;
            childStatus.Attachments.ForEach(ClientState.Current.DataService.Save);

            ClientState.Current.DataService.Save(childStatus);

            status.Add(childStatus);

            EventBroker.Publish(AppEvents.StatusUpdateReceived, status);
        }