diff --git a/.travis.yml b/.travis.yml index 811de032f1..d648a2174e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,9 +12,6 @@ matrix: mono: 4.2.3 dotnet: 1.0.0-preview2-003121 -before_install: - - if test "$TRAVIS_OS_NAME" == "osx"; then ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/; ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/; fi - install: - nuget restore Octokit-Mono.sln diff --git a/Octokit/Models/Response/RepositoryTrafficClone.cs b/Octokit/Models/Response/RepositoryTrafficClone.cs index 9baf715e77..f03aec0f59 100644 --- a/Octokit/Models/Response/RepositoryTrafficClone.cs +++ b/Octokit/Models/Response/RepositoryTrafficClone.cs @@ -3,8 +3,6 @@ using System.Diagnostics; using System.Diagnostics.CodeAnalysis; using System.Globalization; -using Octokit.Helpers; -using Octokit.Internal; namespace Octokit { @@ -40,21 +38,14 @@ public class RepositoryTrafficClone public RepositoryTrafficClone() { } [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "It's a property from the api.")] - public RepositoryTrafficClone(long timestamp, int count, int uniques) + public RepositoryTrafficClone(DateTimeOffset timestamp, int count, int uniques) { - TimestampAsUtcEpochSeconds = timestamp; + Timestamp = timestamp; Count = count; Uniques = uniques; } - [Parameter(Key = "ignoreThisField")] - public DateTimeOffset Timestamp - { - get { return TimestampAsUtcEpochSeconds.FromUnixTime(); } - } - - [Parameter(Key = "timestamp")] - public long TimestampAsUtcEpochSeconds { get; protected set; } + public DateTimeOffset Timestamp { get; protected set; } public int Count { get; protected set; } diff --git a/Octokit/Models/Response/RepositoryTrafficView.cs b/Octokit/Models/Response/RepositoryTrafficView.cs index c9c8ae5aa9..f13acc1282 100644 --- a/Octokit/Models/Response/RepositoryTrafficView.cs +++ b/Octokit/Models/Response/RepositoryTrafficView.cs @@ -40,21 +40,14 @@ public class RepositoryTrafficView public RepositoryTrafficView() { } [SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Justification = "It's a property from the api.")] - public RepositoryTrafficView(long timestamp, int count, int uniques) + public RepositoryTrafficView(DateTimeOffset timestamp, int count, int uniques) { - TimestampAsUtcEpochSeconds = timestamp; + Timestamp = timestamp; Count = count; Uniques = uniques; } - [Parameter(Key = "ignoreThisField")] - public DateTimeOffset Timestamp - { - get { return TimestampAsUtcEpochSeconds.FromUnixTime(); } - } - - [Parameter(Key = "timestamp")] - public long TimestampAsUtcEpochSeconds { get; protected set; } + public DateTimeOffset Timestamp { get; protected set; } public int Count { get; protected set; } diff --git a/appveyor.yml b/appveyor.yml index 9b4320e34d..6c4ffa07d7 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -7,9 +7,6 @@ build_script: - cmd: build.cmd CreatePackages - cmd: build.cmd UnitTestsDotNetCore test: off -nuget: - account_feed: true - project_feed: true artifacts: - path: 'packaging\octokit*.nupkg' name: OctokitPackages \ No newline at end of file