Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 3ae8c94

Browse files
Making fields public so they can be serialized
1 parent dbbc878 commit 3ae8c94

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/GitHub.Api/Git/GitBranch.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ public struct GitBranch : ITreeData
1313
{
1414
public static GitBranch Default = new GitBranch();
1515

16-
private string name;
17-
private string tracking;
18-
private bool isActive;
16+
public string name;
17+
public string tracking;
18+
public bool isActive;
1919

2020
public string Name { get { return name; } }
2121
public string Tracking { get { return tracking; } }

src/GitHub.Api/Git/GitRemote.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ public struct GitRemote
1616
{
1717
public static GitRemote Default = new GitRemote();
1818

19-
private string name;
20-
private string url;
21-
private string login;
22-
private string user;
23-
private string host;
24-
private GitRemoteFunction function;
25-
private readonly string token;
19+
public string name;
20+
public string url;
21+
public string login;
22+
public string user;
23+
public string host;
24+
public GitRemoteFunction function;
25+
public readonly string token;
2626

2727
public string Name
2828
{

0 commit comments

Comments
 (0)