Пример #1
0
 public static void WriteSubmitQuestionResult(this DataOutputStream output, AskQuestionConfirm value)
 {
     if (value == null)
     {
         throw new ArgumentNullException("value");
     }
     output.WriteString(value.AdvertURL);
     output.WriteString(value.AdvertImage);
     output.WriteString(value.AskQuestionID);
 }
Пример #2
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());
 }
Пример #3
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);
     }
 }
Пример #4
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);
     }
 }
Пример #5
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);
 }
Пример #6
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);
     }
 }
Пример #7
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());
 }
Пример #8
0
 public static void WriteStringArray(this DataOutputStream output, String[] value)
 {
     if (value == null)
     {
         throw new ArgumentNullException("value");
     }
     output.WriteInt32(value.Length);
     foreach (var item in value)
     {
         output.WriteString(item);
     }
 }
Пример #9
0
 public static void WriteUploadTagsResult(this DataOutputStream output, TagConfirmation[] value)
 {
     if (value == null)
     {
         throw new ArgumentNullException("value");
     }
     output.WriteInt32(value.Length);
     foreach (var item in value)
     {
         output.WriteString(item.DeviceID);
         output.WriteBoolean(item.ConfirmedByServer);
     }
 }
Пример #10
0
 public static void WriteGetResponseResult(this DataOutputStream output, AskResponse value)
 {
     if (value == null)
     {
         throw new ArgumentNullException("value");
     }
     output.WriteInt32(value.AskQuestionID);
     output.WriteString(value.Question);
     output.WriteByteArray(Convert.FromBase64String(value.PhotoBase64Binary));
     output.WriteInt32Array(value.ResponseValues);
     output.WriteFloat(Convert.ToSingle(value.Average));
     output.WriteInt32(value.ResponseType);
     output.WriteStringArray(value.CustomResponses);
 }
Пример #11
0
 public void Return(DataOutputStream output)
 {
     output.WriteString(_result);
 }
Пример #12
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);
     }
 }
Пример #13
0
 public void Return(DataOutputStream output)
 {
     output.WriteString(_result);
 }