Skip to content

Commit 0e12d25

Browse files
C# file contain a single class at the root level ♻️
1 parent 7d98210 commit 0e12d25

File tree

6 files changed

+31
-25
lines changed

6 files changed

+31
-25
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
namespace Notion.Client
2+
{
3+
public class MentionInput
4+
{
5+
public string Type { get; set; }
6+
public Person User { get; set; }
7+
public ObjectId Page { get; set; }
8+
public ObjectId Database { get; set; }
9+
public DatePropertyValue Date { get; set; }
10+
}
11+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
namespace Notion.Client
2+
{
3+
public class MultiSelectOptionSchema : SelectOptionSchema
4+
{
5+
}
6+
}

Src/Notion.Client/Api/Databases/RequestParams/DatabasesCreateParameters/PropertySchema/MultiSelectPropertySchema.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,4 @@ public class MultiSelectPropertySchema : IPropertySchema
77
[JsonProperty("multi_select")]
88
public OptionWrapper<MultiSelectOptionSchema> MultiSelect { get; set; }
99
}
10-
11-
public class MultiSelectOptionSchema : SelectOptionSchema
12-
{
13-
}
1410
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using Newtonsoft.Json;
2+
using Newtonsoft.Json.Converters;
3+
4+
namespace Notion.Client
5+
{
6+
public class SelectOptionSchema
7+
{
8+
public string Name { get; set; }
9+
10+
[JsonConverter(typeof(StringEnumConverter))]
11+
public Color Color { get; set; }
12+
}
13+
}
Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
1-
using Newtonsoft.Json;
2-
using Newtonsoft.Json.Converters;
3-
4-
namespace Notion.Client
1+
namespace Notion.Client
52
{
63
public class SelectPropertySchema : IPropertySchema
74
{
85
public OptionWrapper<SelectOptionSchema> Select { get; set; }
96
}
10-
11-
public class SelectOptionSchema
12-
{
13-
public string Name { get; set; }
14-
15-
[JsonConverter(typeof(StringEnumConverter))]
16-
public Color Color { get; set; }
17-
}
187
}

Src/Notion.Client/Api/Databases/RequestParams/DatabasesCreateParameters/RichTextMentionInput.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,4 @@ public class RichTextMentionInput : RichTextBaseInput
55
public override RichTextType Type => RichTextType.Mention;
66
public MentionInput Mention { get; set; }
77
}
8-
9-
public class MentionInput
10-
{
11-
public string Type { get; set; }
12-
public Person User { get; set; }
13-
public ObjectId Page { get; set; }
14-
public ObjectId Database { get; set; }
15-
public DatePropertyValue Date { get; set; }
16-
}
178
}

0 commit comments

Comments
 (0)