public static void WriteGetItemsResult(this DataOutputStream output, DashboardItem[] value) { if (value == null) { throw new ArgumentNullException("value"); } output.WriteInt32(value.Length); foreach (var item in value) { output.WriteString(item.AskQuestion); output.WriteDateTime(item.DateTime.ToDateTime()); output.WriteInt32(item.FeedItemType); output.WriteString(item.Friend1FullName); output.WriteString(item.Friend2FullName); output.WriteString(item.FriendNickname1); output.WriteString(item.FriendNickname2); output.WriteString(item.FriendWebMemberID1); output.WriteString(item.FriendWebMemberID2); output.WriteString(item.Text); output.WriteString(item.ThumbnailUrl); output.WriteString(item.Title); output.WriteInt32(item.ObjectID); output.WriteString(item.WebPhotoCollectionID); output.WriteString(item.WebPhotoID); } }
public static void WriteGetQuestionResult(this DataOutputStream output, AskQuestion value) { if (value == null) { throw new ArgumentNullException("value"); } output.WriteInt32(value.ID); output.WriteString(value.Question); output.WriteDateTime(value.DTCreated.ToDateTime()); }
public static void WriteGetEntryResult(this DataOutputStream output, BlogEntry value) { if (value == null) { throw new ArgumentNullException("value"); } output.WriteInt32(value.ID); output.WriteString(value.Title); output.WriteString(value.Body); output.WriteDateTime(value.DTCreated.ToDateTime()); }
public static void WriteGetNewFriendsResult(this DataOutputStream output, DashboardNewFriend[] value) { if (value == null) { throw new ArgumentNullException("value"); } output.WriteInt32(value.Length); foreach (var item in value) { output.WriteDateTime(item.DateTime.ToDateTime()); output.WriteString(item.Nickname1); output.WriteString(item.Nickname2); } }
public static void WriteGetPhotosForCollectionResult(this DataOutputStream output, WebPhoto[] value) { if (value == null) { throw new ArgumentNullException("value"); } output.WriteInt32(value.Length); foreach (var item in value) { output.WriteInt32(item.ID); output.WriteDateTime(item.CreatedDT.ToDateTime()); output.WriteString(item.Title); output.WriteString(item.Description); } }
public static void WriteGetCommentResult(this DataOutputStream output, WebComment value) { if (value == null) { throw new ArgumentNullException("value"); } output.WriteInt32(value.ID); output.WriteInt32(value.ObjectID); output.WriteString(value.Nickname); output.WriteString(value.Text); output.WriteDateTime(value.DTCreated.ToDateTime()); output.WriteInt32(value.InReplyToCommentID); output.WriteInt32(value.ParentCommentID); output.WriteInt32(value.CommentType); }
public static void WriteGetVideosResult(this DataOutputStream output, DashboardVideo[] value) { if (value == null) { throw new ArgumentNullException("value"); } output.WriteInt32(value.Length); foreach (var item in value) { output.WriteDateTime(item.DateTime.ToDateTime()); output.WriteString(item.Nickname); output.WriteString(item.Text); output.WriteString(item.Title); output.WriteString(item.ThumbnailUrl); } }