/// <summary> /// Set data container object to succesfully parsed value /// </summary> /// <returns>Response wrapper with valid data</returns> public static ParsedWalletResponse <T> CreateContent(T data) { var obj = new ParsedWalletResponse <T>(); obj.SetContent(data); return(obj); }
/// <summary> /// Set data container object to error /// </summary> /// <returns>Response wrapper with error</returns> public static ParsedWalletResponse <T> CreateError(WalletError error) { var obj = new ParsedWalletResponse <T>(); obj.IsError = true; obj.SetContent(error); return(obj); }