mirror of
https://github.com/sphildreth/roadie
synced 2024-11-29 23:50:21 +00:00
39 lines
No EOL
1,019 B
C#
39 lines
No EOL
1,019 B
C#
using System.Collections.Generic;
|
|
|
|
namespace Roadie.Library.Models.ThirdPartyApi.Subsonic
|
|
{
|
|
public class SubsonicFileOperationResult<T> : FileOperationResult<T>
|
|
{
|
|
public ErrorCodes ErrorCode { get; set; }
|
|
|
|
public SubsonicFileOperationResult()
|
|
{
|
|
}
|
|
|
|
public SubsonicFileOperationResult(string message)
|
|
: base(message)
|
|
{
|
|
}
|
|
|
|
public SubsonicFileOperationResult(bool isNotFoundResult, string message)
|
|
: base(isNotFoundResult, message)
|
|
{
|
|
}
|
|
|
|
public SubsonicFileOperationResult(IEnumerable<string> messages = null)
|
|
: base(messages)
|
|
{
|
|
}
|
|
|
|
public SubsonicFileOperationResult(bool isNotFoundResult, IEnumerable<string> messages = null)
|
|
: base(isNotFoundResult, messages)
|
|
{
|
|
}
|
|
|
|
public SubsonicFileOperationResult(ErrorCodes error, string message = null)
|
|
: base(message)
|
|
{
|
|
ErrorCode = error;
|
|
}
|
|
}
|
|
} |