public static CreateAccountResult Decode(XdrDataInputStream stream) { CreateAccountResult decodedCreateAccountResult = new CreateAccountResult(); CreateAccountResultCode discriminant = CreateAccountResultCode.Decode(stream); decodedCreateAccountResult.Discriminant = discriminant; switch (decodedCreateAccountResult.Discriminant.InnerValue) { case CreateAccountResultCode.CreateAccountResultCodeEnum.CREATE_ACCOUNT_SUCCESS: break; } return(decodedCreateAccountResult); }
public static CreateAccountResult Decode(IByteReader stream) { CreateAccountResult decodedCreateAccountResult = new CreateAccountResult(); decodedCreateAccountResult.Discriminant = CreateAccountResultCode.Decode(stream); switch (decodedCreateAccountResult.Discriminant.InnerValue) { case CreateAccountResultCode.CreateAccountResultCodeEnum.CREATE_ACCOUNT_SUCCESS: break; default: break; } return(decodedCreateAccountResult); }