public static RevokeSponsorshipResult Decode(XdrDataInputStream stream) { RevokeSponsorshipResult decodedRevokeSponsorshipResult = new RevokeSponsorshipResult(); RevokeSponsorshipResultCode discriminant = RevokeSponsorshipResultCode.Decode(stream); decodedRevokeSponsorshipResult.Discriminant = discriminant; switch (decodedRevokeSponsorshipResult.Discriminant.InnerValue) { case RevokeSponsorshipResultCode.RevokeSponsorshipResultCodeEnum.REVOKE_SPONSORSHIP_SUCCESS: break; default: break; } return(decodedRevokeSponsorshipResult); }
public static void Encode(XdrDataOutputStream stream, RevokeSponsorshipResultCode value) { stream.WriteInt((int)value.InnerValue); }