示例#1
0
        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);
        }
示例#2
0
 public static void Encode(XdrDataOutputStream stream, RevokeSponsorshipResultCode value)
 {
     stream.WriteInt((int)value.InnerValue);
 }