public static UnconfirmedServiceRequest Load(IValueStream stream)
{
UnconfirmedServiceRequest ret = null;
Tags tag = (Tags)stream.EnterChoice();
switch(tag)
{
case Tags.IAm:
ret = Value<IAmWrapper>.Load(stream);
break;
case Tags.IHave:
ret = Value<IHaveWrapper>.Load(stream);
break;
case Tags.UnconfirmedCOVNotification:
ret = Value<UnconfirmedCOVNotificationWrapper>.Load(stream);
break;
case Tags.UnconfirmedEventNotification:
ret = Value<UnconfirmedEventNotificationWrapper>.Load(stream);
break;
case Tags.UnconfirmedPrivateTransfer:
ret = Value<UnconfirmedPrivateTransferWrapper>.Load(stream);
break;
case Tags.UnconfirmedTextMessage:
ret = Value<UnconfirmedTextMessageWrapper>.Load(stream);
break;
case Tags.TimeSynchronization:
ret = Value<TimeSynchronizationWrapper>.Load(stream);
break;
case Tags.WhoHas:
ret = Value<WhoHasWrapper>.Load(stream);
break;
case Tags.WhoIs:
ret = Value<WhoIsWrapper>.Load(stream);
break;
case Tags.UtcTimeSynchronization:
ret = Value<UtcTimeSynchronizationWrapper>.Load(stream);
break;
default:
throw new Exception();
}
stream.LeaveChoice();
return ret;
}