diff --git a/Octokit/Models/Response/GistChangeStatus.cs b/Octokit/Models/Response/GistChangeStatus.cs
index 4b790347..e3fc1b6e 100644
--- a/Octokit/Models/Response/GistChangeStatus.cs
+++ b/Octokit/Models/Response/GistChangeStatus.cs
@@ -8,16 +8,16 @@
///
/// The number of deletions that occurred as part of this change.
///
- public int Deletions { get; set; }
+ public int Deletions { get; protected set; }
///
/// The number of additions that occurred as part of this change.
///
- public int Additions { get; set; }
+ public int Additions { get; protected set; }
///
/// The total number of changes.
///
- public int Total { get; set; }
+ public int Total { get; protected set; }
}
}
\ No newline at end of file
diff --git a/Octokit/Models/Response/GistFile.cs b/Octokit/Models/Response/GistFile.cs
index 64aad8b0..a396a165 100644
--- a/Octokit/Models/Response/GistFile.cs
+++ b/Octokit/Models/Response/GistFile.cs
@@ -7,33 +7,33 @@ namespace Octokit
///
/// The size in bytes of the file.
///
- public int Size { get; set; }
+ public int Size { get; protected set; }
///
/// The name of the file
///
[SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly")]
- public string Filename { get; set; }
+ public string Filename { get; protected set; }
///
/// The mime type of the file
///
[SuppressMessage("Microsoft.Naming", "CA1721:PropertyNamesShouldNotMatchGetMethods")]
- public string Type { get; set; }
+ public string Type { get; protected set; }
///
/// The programming language of the file, if any.
///
- public string Language { get; set; }
+ public string Language { get; protected set; }
///
/// The text content of the file.
///
- public string Content { get; set; }
+ public string Content { get; protected set; }
///
/// The url to download the file.
///
- public string RawUrl { get; set; }
+ public string RawUrl { get; protected set; }
}
}
\ No newline at end of file
diff --git a/Octokit/Models/Response/GistFork.cs b/Octokit/Models/Response/GistFork.cs
index b6c3662c..b33163c5 100644
--- a/Octokit/Models/Response/GistFork.cs
+++ b/Octokit/Models/Response/GistFork.cs
@@ -7,16 +7,16 @@ namespace Octokit
///
/// The that created this
///
- public User User { get; set; }
+ public User User { get; protected set; }
///
/// The API URL for this .
///
- public string Url { get; set; }
+ public string Url { get; protected set; }
///
/// The for when this was created.
///
- public DateTimeOffset CreatedAt { get; set; }
+ public DateTimeOffset CreatedAt { get; protected set; }
}
}
\ No newline at end of file
diff --git a/Octokit/Models/Response/GistHistory.cs b/Octokit/Models/Response/GistHistory.cs
index 0ea5fe32..50c4063d 100644
--- a/Octokit/Models/Response/GistHistory.cs
+++ b/Octokit/Models/Response/GistHistory.cs
@@ -10,26 +10,26 @@ namespace Octokit
///
/// The url that can be used by the API to retrieve this version of the .
///
- public string Url { get; set; }
+ public string Url { get; protected set; }
///
/// A git sha representing the version.
///
- public string Version { get; set; }
+ public string Version { get; protected set; }
///
/// The who create this version.
///
- public User User { get; set; }
+ public User User { get; protected set; }
///
/// A that represents the level of change for this .
///
- public GistChangeStatus ChangeStatus { get; set; }
+ public GistChangeStatus ChangeStatus { get; protected set; }
///
/// The the version was created.
///
- public DateTimeOffset CommittedAt { get; set; }
+ public DateTimeOffset CommittedAt { get; protected set; }
}
}
\ No newline at end of file
diff --git a/Octokit/Models/Response/GitHubCommitFile.cs b/Octokit/Models/Response/GitHubCommitFile.cs
index daadf0f3..c8d2b571 100644
--- a/Octokit/Models/Response/GitHubCommitFile.cs
+++ b/Octokit/Models/Response/GitHubCommitFile.cs
@@ -15,59 +15,56 @@ namespace Octokit
/// The name of the file
///
[SuppressMessage("Microsoft.Naming", "CA1702:CompoundWordsShouldBeCasedCorrectly")]
- public string Filename { get; set; }
+ public string Filename { get; protected set; }
///
/// Number of additions performed on the file.
///
- public int Additions { get; set; }
+ public int Additions { get; protected set; }
///
/// Number of deletions performed on the file.
///
- public int Deletions { get; set; }
+ public int Deletions { get; protected set; }
///
/// Number of changes performed on the file.
///
- public int Changes { get; set; }
+ public int Changes { get; protected set; }
///
/// File status, like modified, added, deleted.
///
- public string Status { get; set; }
+ public string Status { get; protected set; }
///
/// The url to the file blob.
///
- public string BlobUrl { get; set; }
+ public string BlobUrl { get; protected set; }
///
/// The url to file contents API.
///
- public string ContentsUrl { get; set; }
+ public string ContentsUrl { get; protected set; }
///
/// The raw url to download the file.
///
- public string RawUrl { get; set; }
+ public string RawUrl { get; protected set; }
///
/// The SHA of the file.
///
- public string Sha { get; set; }
+ public string Sha { get; protected set; }
///
/// The patch associated with the commit
///
- public string Patch { get; set; }
+ public string Patch { get; protected set; }
internal string DebuggerDisplay
{
- get
- {
- return String.Format(CultureInfo.InvariantCulture, "Filename: {0} ({1})", Filename, Status);
- }
+ get { return String.Format(CultureInfo.InvariantCulture, "Filename: {0} ({1})", Filename, Status); }
}
}
-}
\ No newline at end of file
+}
diff --git a/Octokit/Models/Response/SearchCode.cs b/Octokit/Models/Response/SearchCode.cs
index c91d607d..7acd53d1 100644
--- a/Octokit/Models/Response/SearchCode.cs
+++ b/Octokit/Models/Response/SearchCode.cs
@@ -10,44 +10,41 @@ namespace Octokit
///
/// file name
///
- public string Name { get; set; }
+ public string Name { get; protected set; }
///
/// path to file
///
- public string Path { get; set; }
+ public string Path { get; protected set; }
///
/// Sha for file
///
- public string Sha { get; set; }
+ public string Sha { get; protected set; }
///
/// api-url to file
///
- public Uri Url { get; set; }
+ public Uri Url { get; protected set; }
///
/// git-url to file
///
- public Uri GitUrl { get; set; }
+ public Uri GitUrl { get; protected set; }
///
/// html-url to file
///
- public Uri HtmlUrl { get; set; }
+ public Uri HtmlUrl { get; protected set; }
///
/// Repo where this file belongs to
///
- public Repository Repository { get; set; }
+ public Repository Repository { get; protected set; }
internal string DebuggerDisplay
{
- get
- {
- return String.Format(CultureInfo.InvariantCulture, "Sha: {0} Name: {1}", Sha, Name);
- }
+ get { return String.Format(CultureInfo.InvariantCulture, "Sha: {0} Name: {1}", Sha, Name); }
}
}
-}
\ No newline at end of file
+}
diff --git a/Octokit/Models/Response/TreeItem.cs b/Octokit/Models/Response/TreeItem.cs
index 0fff7f60..6be4beca 100644
--- a/Octokit/Models/Response/TreeItem.cs
+++ b/Octokit/Models/Response/TreeItem.cs
@@ -8,33 +8,33 @@ namespace Octokit
///
/// The path for this Tree Item.
///
- public string Path { get; set; }
+ public string Path { get; protected set; }
///
/// The mode of this Tree Item.
///
- public string Mode { get; set; }
+ public string Mode { get; protected set; }
///
/// The type of this Tree Item.
///
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1721:PropertyNamesShouldNotMatchGetMethods")]
- public TreeType Type { get; set; }
+ public TreeType Type { get; protected set; }
///
/// The size of this Tree Item.
///
- public int Size { get; set; }
+ public int Size { get; protected set; }
///
/// The SHA of this Tree Item.
///
- public string Sha { get; set; }
+ public string Sha { get; protected set; }
///
/// The URL of this Tree Item.
///
- public Uri Url { get; set; }
+ public Uri Url { get; protected set; }
}
public enum TreeType
diff --git a/Octokit/Models/Response/WeeklyCommitActivity.cs b/Octokit/Models/Response/WeeklyCommitActivity.cs
index b10009f5..00f3ceb2 100644
--- a/Octokit/Models/Response/WeeklyCommitActivity.cs
+++ b/Octokit/Models/Response/WeeklyCommitActivity.cs
@@ -13,17 +13,17 @@ namespace Octokit
///
/// The days array is a group of commits per day, starting on Sunday.
///
- public IEnumerable Days { get; set; }
+ public IEnumerable Days { get; protected set; }
///
/// Totally number of commits made this week.
///
- public int Total { get; set; }
+ public int Total { get; protected set; }
///
/// The week of commits
///
- public long Week { get; set; }
+ public long Week { get; protected set; }
public DateTimeOffset WeekTimestamp
{
@@ -49,4 +49,4 @@ namespace Octokit
}
}
}
-}
\ No newline at end of file
+}
diff --git a/Octokit/Models/Response/WeeklyHash.cs b/Octokit/Models/Response/WeeklyHash.cs
index a8a9775f..3549dfea 100644
--- a/Octokit/Models/Response/WeeklyHash.cs
+++ b/Octokit/Models/Response/WeeklyHash.cs
@@ -10,16 +10,16 @@ namespace Octokit
public class WeeklyHash
{
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "W")]
- public long W { get; set; }
+ public long W { get; protected set; }
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "A")]
- public int A { get; set; }
+ public int A { get; protected set; }
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "D")]
- public int D { get; set; }
+ public int D { get; protected set; }
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "C")]
- public int C { get; set; }
+ public int C { get; protected set; }
public DateTimeOffset Week
{
@@ -50,4 +50,4 @@ namespace Octokit
}
}
}
-}
\ No newline at end of file
+}