public static ChangeTrustResult Decode(XdrDataInputStream stream) { ChangeTrustResult decodedChangeTrustResult = new ChangeTrustResult(); ChangeTrustResultCode discriminant = ChangeTrustResultCode.Decode(stream); decodedChangeTrustResult.Discriminant = discriminant; switch (decodedChangeTrustResult.Discriminant.InnerValue) { case ChangeTrustResultCode.ChangeTrustResultCodeEnum.CHANGE_TRUST_SUCCESS: break; default: break; } return(decodedChangeTrustResult); }
public static void Encode(XdrDataOutputStream stream, ChangeTrustResultCode value) { stream.WriteInt((int)value.InnerValue); }