summaryrefslogtreecommitdiffstats
path: root/src/server/Api/V1/Entries/UpdateEntryRequest.cs
blob: 819e2d2b9388df1104225719ad174d06b7dc2810 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
namespace IOL.BookmarkThing.Server.Api.V1.Entries;

public class UpdateEntryRequest
{
	public Guid Id { get; set; }
	public Uri Url { get; set; }
	public string Description { get; set; }
	public string Tags { get; set; }

	public List<ErrorResult> GetErrors() {
		var errors = new List<ErrorResult>();
		if (Url == default) {
			errors.Add(new ErrorResult("Url is a required field"));
		}

		return errors;
	}
}