-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathLibObject.cs
More file actions
27 lines (25 loc) · 712 Bytes
/
LibObject.cs
File metadata and controls
27 lines (25 loc) · 712 Bytes
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
namespace Exercise
{
public abstract class LibObject : IRegistarable
{
private IRegistrationApi registrationApi;
protected LibObject(IRegistrationApi registrationApi)
{
this.registrationApi = registrationApi;
}
public int ObjectId { get; set; }
public int AvailableAmount { get; set; }
public string NameOrTitle { get; set; }
public ObjectType ObjType { get; set; }
public int YearCreated { get; set; }
public RegisteredObject GetRegistrationInfo()
{
return registrationApi.GetRegistrationInfo(this);
}
}
public enum ObjectType
{
Person,
Item
}
}