本文整理汇总了C#中Evernote.EDAM.Error.EDAMUserException.Read方法的典型用法代码示例。如果您正苦于以下问题:C# Evernote.EDAM.Error.EDAMUserException.Read方法的具体用法?C# Evernote.EDAM.Error.EDAMUserException.Read怎么用?C# Evernote.EDAM.Error.EDAMUserException.Read使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Evernote.EDAM.Error.EDAMUserException
的用法示例。
在下文中一共展示了Evernote.EDAM.Error.EDAMUserException.Read方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Read
public void Read (TProtocol iprot)
{
TField field;
iprot.ReadStructBegin();
while (true)
{
field = iprot.ReadFieldBegin();
if (field.Type == TType.Stop) {
break;
}
switch (field.ID)
{
case 0:
if (field.Type == TType.List) {
{
Success = new List<Evernote.EDAM.Type.Notebook>();
TList _list110 = iprot.ReadListBegin();
for( int _i111 = 0; _i111 < _list110.Count; ++_i111)
{
Evernote.EDAM.Type.Notebook _elem112 = new Evernote.EDAM.Type.Notebook();
_elem112 = new Evernote.EDAM.Type.Notebook();
_elem112.Read(iprot);
Success.Add(_elem112);
}
iprot.ReadListEnd();
}
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
case 1:
if (field.Type == TType.Struct) {
UserException = new Evernote.EDAM.Error.EDAMUserException();
UserException.Read(iprot);
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
case 2:
if (field.Type == TType.Struct) {
SystemException = new Evernote.EDAM.Error.EDAMSystemException();
SystemException.Read(iprot);
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
default:
TProtocolUtil.Skip(iprot, field.Type);
break;
}
iprot.ReadFieldEnd();
}
iprot.ReadStructEnd();
}
示例2: Read
public void Read (TProtocol iprot)
{
TField field;
iprot.ReadStructBegin();
while (true)
{
field = iprot.ReadFieldBegin();
if (field.Type == TType.Stop) {
break;
}
switch (field.ID)
{
case 0:
if (field.Type == TType.Struct) {
Success = new PremiumInfo();
Success.Read(iprot);
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
case 1:
if (field.Type == TType.Struct) {
UserException = new Evernote.EDAM.Error.EDAMUserException();
UserException.Read(iprot);
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
case 2:
if (field.Type == TType.Struct) {
SystemException = new Evernote.EDAM.Error.EDAMSystemException();
SystemException.Read(iprot);
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
default:
TProtocolUtil.Skip(iprot, field.Type);
break;
}
iprot.ReadFieldEnd();
}
iprot.ReadStructEnd();
}