You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

265 lines
5.5 KiB
C#

/**
* Autogenerated by Thrift Compiler (0.9.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.IO;
using Thrift;
using Thrift.Collections;
using System.Runtime.Serialization;
using Thrift.Protocol;
using Thrift.Transport;
#if !SILVERLIGHT
[Serializable]
#endif
public partial class OutCarLine : TBase
{
private string _car_no;
private string _downline;
private string _order_id;
private string _materiel_num;
private string _create_time;
private string _cartype;
public string Car_no
{
get
{
return _car_no;
}
set
{
__isset.car_no = true;
this._car_no = value;
}
}
public string Downline
{
get
{
return _downline;
}
set
{
__isset.downline = true;
this._downline = value;
}
}
public string Order_id
{
get
{
return _order_id;
}
set
{
__isset.order_id = true;
this._order_id = value;
}
}
public string Materiel_num
{
get
{
return _materiel_num;
}
set
{
__isset.materiel_num = true;
this._materiel_num = value;
}
}
public string Create_time
{
get
{
return _create_time;
}
set
{
__isset.create_time = true;
this._create_time = value;
}
}
public string Cartype
{
get
{
return _cartype;
}
set
{
__isset.cartype = true;
this._cartype = value;
}
}
public Isset __isset;
#if !SILVERLIGHT
[Serializable]
#endif
public struct Isset {
public bool car_no;
public bool downline;
public bool order_id;
public bool materiel_num;
public bool create_time;
public bool cartype;
}
public OutCarLine() {
}
public void Read (TProtocol iprot)
{
TField field;
iprot.ReadStructBegin();
while (true)
{
field = iprot.ReadFieldBegin();
if (field.Type == TType.Stop) {
break;
}
switch (field.ID)
{
case 1:
if (field.Type == TType.String) {
Car_no = iprot.ReadString();
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
case 2:
if (field.Type == TType.String) {
Downline = iprot.ReadString();
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
case 3:
if (field.Type == TType.String) {
Order_id = iprot.ReadString();
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
case 4:
if (field.Type == TType.String) {
Materiel_num = iprot.ReadString();
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
case 5:
if (field.Type == TType.String) {
Create_time = iprot.ReadString();
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
case 6:
if (field.Type == TType.String) {
Cartype = iprot.ReadString();
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
default:
TProtocolUtil.Skip(iprot, field.Type);
break;
}
iprot.ReadFieldEnd();
}
iprot.ReadStructEnd();
}
public void Write(TProtocol oprot) {
TStruct struc = new TStruct("OutCarLine");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (Car_no != null && __isset.car_no) {
field.Name = "car_no";
field.Type = TType.String;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteString(Car_no);
oprot.WriteFieldEnd();
}
if (Downline != null && __isset.downline) {
field.Name = "downline";
field.Type = TType.String;
field.ID = 2;
oprot.WriteFieldBegin(field);
oprot.WriteString(Downline);
oprot.WriteFieldEnd();
}
if (Order_id != null && __isset.order_id) {
field.Name = "order_id";
field.Type = TType.String;
field.ID = 3;
oprot.WriteFieldBegin(field);
oprot.WriteString(Order_id);
oprot.WriteFieldEnd();
}
if (Materiel_num != null && __isset.materiel_num) {
field.Name = "materiel_num";
field.Type = TType.String;
field.ID = 4;
oprot.WriteFieldBegin(field);
oprot.WriteString(Materiel_num);
oprot.WriteFieldEnd();
}
if (Create_time != null && __isset.create_time) {
field.Name = "create_time";
field.Type = TType.String;
field.ID = 5;
oprot.WriteFieldBegin(field);
oprot.WriteString(Create_time);
oprot.WriteFieldEnd();
}
if (Cartype != null && __isset.cartype) {
field.Name = "cartype";
field.Type = TType.String;
field.ID = 6;
oprot.WriteFieldBegin(field);
oprot.WriteString(Cartype);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}
public override string ToString() {
StringBuilder sb = new StringBuilder("OutCarLine(");
sb.Append("Car_no: ");
sb.Append(Car_no);
sb.Append(",Downline: ");
sb.Append(Downline);
sb.Append(",Order_id: ");
sb.Append(Order_id);
sb.Append(",Materiel_num: ");
sb.Append(Materiel_num);
sb.Append(",Create_time: ");
sb.Append(Create_time);
sb.Append(",Cartype: ");
sb.Append(Cartype);
sb.Append(")");
return sb.ToString();
}
}