Skip to content

Commit 8d403c5

Browse files
authored
Merge pull request #129 from Flagsmith/fix/null-flag-id
fix!: Remove flag ID properties/methods
2 parents 97a6f89 + 4278dbb commit 8d403c5

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

Flagsmith.FlagsmithClient/Flag.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ public Flag(Feature feature, bool enabled, string value, int featureId = default
1515
this.Value = value;
1616
this.Feature = feature;
1717
}
18-
[JsonProperty("id")]
19-
public int Id { get; private set; }
2018
[JsonProperty("feature")]
2119
private Feature Feature { get; set; }
2220

@@ -26,10 +24,6 @@ public Flag(Feature feature, bool enabled, string value, int featureId = default
2624
[JsonProperty("feature_state_value")]
2725
public string Value { get; private set; }
2826

29-
public int getFeatureId()
30-
{
31-
return this.Feature.Id;
32-
}
3327
public string GetFeatureName()
3428
{
3529
return this.Feature.Name;

Flagsmith.FlagsmithClient/Flagsmith.FlagsmithClient.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
88
<PackageId>Flagsmith</PackageId>
99
<Title>Flagsmith</Title>
10-
<Version>6.0.0</Version>
10+
<Version>7.0.0</Version>
1111
<Authors>flagsmith</Authors>
1212
<Company>Flagsmith</Company>
1313
<PackageDescription>Client SDK for Flagsmith. Ship features with confidence using feature flags and remote config. Host yourself or use our hosted version at https://flagsmith.com/</PackageDescription>

Flagsmith.FlagsmithClient/IFlag.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@
22
{
33
public interface IFlag
44
{
5-
int Id { get; }
65
bool Enabled { get; }
76
string Value { get; }
8-
int getFeatureId();
97
string GetFeatureName();
10-
string ToString();
118
}
129
}

0 commit comments

Comments
 (0)