UploadSessionFinishError enc.IEncodable <UploadSessionFinishError> .Decode(enc.IDecoder decoder) { switch (decoder.GetUnionName()) { case "lookup_failed": var lookupFailed = new UploadSessionLookupError(); return(new LookupFailed(((enc.IEncodable <UploadSessionLookupError>)lookupFailed).Decode(decoder))); case "path": var path = new WriteError(); return(new Path(((enc.IEncodable <WriteError>)path).Decode(decoder))); default: return(Other.Instance); } }
/// <summary> /// <para>Initializes a new instance of the <see cref="LookupFailed" /> /// class.</para> /// </summary> /// <param name="value">The value</param> public LookupFailed(UploadSessionLookupError value) { this.Value = value; }