-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathObjectInfo.cs
45 lines (39 loc) · 1.13 KB
/
ObjectInfo.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
39
40
41
42
43
44
45
//-----------------------------------------------------------------------
// <copyright file="ObjectInfo.cs" company="(none)">
// Copyright © 2013 John Gietzen and the WebGit .NET Authors. All rights reserved.
// </copyright>
// <author>John Gietzen</author>
//-----------------------------------------------------------------------
namespace WebGitNet
{
public class ObjectInfo
{
private readonly string hash;
private readonly string name;
private readonly ObjectType objectType;
private readonly int? size;
public ObjectInfo(ObjectType objectType, string hash, int? size, string name)
{
this.objectType = objectType;
this.hash = hash;
this.size = size;
this.name = name;
}
public string Hash
{
get { return this.hash; }
}
public string Name
{
get { return this.name; }
}
public ObjectType ObjectType
{
get { return this.objectType; }
}
public int? Size
{
get { return this.size; }
}
}
}