本文整理汇总了C#中Evernote.EDAM.Error.EDAMSystemException类的典型用法代码示例。如果您正苦于以下问题:C# Evernote.EDAM.Error.EDAMSystemException类的具体用法?C# Evernote.EDAM.Error.EDAMSystemException怎么用?C# Evernote.EDAM.Error.EDAMSystemException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Evernote.EDAM.Error.EDAMSystemException类属于命名空间,在下文中一共展示了Evernote.EDAM.Error.EDAMSystemException类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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.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();
}
示例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.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();
}
示例3: 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) {
this.success = new Evernote.EDAM.Type.Notebook();
this.success.Read(iprot);
this.__isset.success = true;
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
case 1:
if (field.Type == TType.Struct) {
this.userException = new Evernote.EDAM.Error.EDAMUserException();
this.userException.Read(iprot);
this.__isset.userException = true;
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
case 2:
if (field.Type == TType.Struct) {
this.systemException = new Evernote.EDAM.Error.EDAMSystemException();
this.systemException.Read(iprot);
this.__isset.systemException = true;
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
case 3:
if (field.Type == TType.Struct) {
this.notFoundException = new Evernote.EDAM.Error.EDAMNotFoundException();
this.notFoundException.Read(iprot);
this.__isset.notFoundException = true;
} else {
TProtocolUtil.Skip(iprot, field.Type);
}
break;
default:
TProtocolUtil.Skip(iprot, field.Type);
break;
}
iprot.ReadFieldEnd();
}
iprot.ReadStructEnd();
}