Skip to content

Commit adede8c

Browse files
committed
Remove long parsing, correct interfaces
1 parent bd42666 commit adede8c

File tree

6 files changed

+3
-18
lines changed

6 files changed

+3
-18
lines changed

Octokit.GraphQL.Core.Generation/Models/TypeModel.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,6 @@ public static TypeModel Int()
6868
};
6969
}
7070

71-
public static TypeModel Long()
72-
{
73-
return new TypeModel
74-
{
75-
Kind = TypeKind.Scalar,
76-
Name = "Long",
77-
};
78-
}
79-
8071
public static TypeModel ID()
8172
{
8273
return new TypeModel

Octokit.GraphQL.Core.Generation/Utilities/TypeUtilities.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ private static string GetCSharpType(TypeModel type, bool nullableType, bool retu
133133
switch (type.Name)
134134
{
135135
case "Int": return "int" + question;
136-
case "Long": return "long" + question;
137136
case "Float": return "double" + question;
138137
case "String": return "string";
139138
case "Boolean": return "bool" + question;
@@ -165,7 +164,6 @@ private static bool IsValueType(TypeModel type)
165164
return type.Kind == TypeKind.Enum ||
166165
(type.Kind == TypeKind.Scalar &&
167166
(type.Name == "Int" ||
168-
type.Name == "Long" ||
169167
type.Name == "Float" ||
170168
type.Name == "Boolean" ||
171169
type.Name == "DateTime" ||

Octokit.GraphQL.Core/Core/Syntax/VariableDefinition.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ public static string ToTypeName(Type type, bool isNullable)
2323
{
2424
name = "Int";
2525
}
26-
else if (type == typeof(long))
27-
{
28-
name = "Long";
29-
}
3026
else if (type == typeof(double))
3127
{
3228
name = "Float";

Octokit.GraphQL/Model/ProjectV2FieldCommon.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public interface IProjectV2FieldCommon : IQueryableValue<IProjectV2FieldCommon>,
2727
/// <summary>
2828
/// Identifies the primary key from the database.
2929
/// </summary>
30-
int? DatabaseId { get; }
30+
long? DatabaseId { get; }
3131

3232
/// <summary>
3333
/// The Node ID of the ProjectV2FieldCommon object

Octokit.GraphQL/Model/ProjectV2ItemFieldValueCommon.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public interface IProjectV2ItemFieldValueCommon : IQueryableValue<IProjectV2Item
2727
/// <summary>
2828
/// Identifies the primary key from the database.
2929
/// </summary>
30-
int? DatabaseId { get; }
30+
long? DatabaseId { get; }
3131

3232
/// <summary>
3333
/// The project field that contains this value.

Octokit.GraphQL/Model/Reactable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public interface IReactable : IQueryableValue<IReactable>, IQueryableInterface
1717
/// <summary>
1818
/// Identifies the primary key from the database.
1919
/// </summary>
20-
int? DatabaseId { get; }
20+
long? DatabaseId { get; }
2121

2222
/// <summary>
2323
/// The Node ID of the Reactable object

0 commit comments

Comments
 (0)