示例#1
0
 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);
     }
 }
示例#2
0
 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());
 }
示例#3
0
 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());
 }
示例#4
0
 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);
     }
 }
示例#5
0
 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);
     }
 }
示例#6
0
 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);
 }
示例#7
0
 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);
     }
 }