Пример #1
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);
 }