-
Notifications
You must be signed in to change notification settings - Fork 0
/
PetPhoto.cs
38 lines (31 loc) · 977 Bytes
/
PetPhoto.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace PatCardStorageAPI
{
public class PetPhoto {
public byte[]? Image { get; set; }
public string? ImageMimeType { get; set; }
public PetPhoto(byte[]? image, string? imageMimeType)
{
Image = image;
ImageMimeType = imageMimeType;
}
}
public class PetPhotoWithGuid: PetPhoto {
public Guid Uuid { get; set; }
public PetPhotoWithGuid(Guid uuid, byte[]? image, string? imageMimeType) : base(image, imageMimeType) {
Uuid = uuid;
}
}
public class PetOriginalPhoto : PetPhotoWithGuid
{
public int ImageNum { get; set; }
public PetOriginalPhoto(Guid uuid, byte[]? image, string? imageMimeType, int imageNum) :
base(uuid,image,imageMimeType)
{
ImageNum = imageNum;
}
}
}