mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-19 13:45:12 +00:00
Turns out that we store these values as int(11) in MySql. The 11 is irrelevant and pertains to display. int is a 4 byte (aka 32 bit) integer. So this maps to a .NET Int32 (aka int). While changing keeping it long might be future proofing, it also requires changes to GHfW and I figure let's jump that hurdle when we get there.
21 lines
865 B
C#
21 lines
865 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using System.Reactive;
|
|
|
|
namespace Octokit.Reactive
|
|
{
|
|
public interface IObservableAuthorizationsClient
|
|
{
|
|
[SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate",
|
|
Justification = "It's an API call, so it's not a property.")]
|
|
IObservable<IReadOnlyCollection<Authorization>> GetAll();
|
|
[SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId = "Get",
|
|
Justification = "It's fiiiine. It's fine. Trust us.")]
|
|
IObservable<Authorization> Get(int id);
|
|
IObservable<Authorization> Update(int id, AuthorizationUpdate authorization);
|
|
IObservable<Authorization> Create(AuthorizationUpdate authorization);
|
|
IObservable<Unit> Delete(int id);
|
|
}
|
|
}
|