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; default: break; } return(decodedCreateAccountResult); }
public static void Encode(XdrDataOutputStream stream, CreateAccountResultCode value) { stream.WriteInt((int)value.InnerValue); }