Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

Commit 0956658

Browse files
authored
Merge pull request #175 from North-Two-Five/issue#174-Changing-fields-of-Concrete-implementations-of-BaseAction-to-Properties
Issue#174 changing fields of concrete implementations of base action to properties
2 parents 779e705 + b3ab8dd commit 0956658

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

Analytics/Model/Alias.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Segment.Model
99
public class Alias : BaseAction
1010
{
1111
[JsonProperty(PropertyName = "previousId")]
12-
private string PreviousId { get; set; }
12+
public string PreviousId { get; set; }
1313

1414
internal Alias(string previousId, string userId, Options options)
1515
: base("alias", userId, options)

Analytics/Model/Group.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ namespace Segment.Model
99
public class Group : BaseAction
1010
{
1111
[JsonProperty(PropertyName = "groupId")]
12-
private string GroupId { get; set; }
12+
public string GroupId { get; set; }
1313

1414
[JsonProperty(PropertyName = "traits")]
15-
private IDictionary<string, object> Traits { get; set; }
15+
public IDictionary<string, object> Traits { get; set; }
1616

1717
internal Group(string userId,
1818
string groupId,

Analytics/Model/Page.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Text;
44

@@ -9,13 +9,13 @@ namespace Segment.Model
99
public class Page : BaseAction
1010
{
1111
[JsonProperty(PropertyName = "name")]
12-
private string Name { get; set; }
12+
public string Name { get; set; }
1313

1414
[JsonProperty(PropertyName = "category")]
15-
private string Category { get; set; }
15+
public string Category { get; set; }
1616

1717
[JsonProperty(PropertyName = "properties")]
18-
private IDictionary<string, object> Properties { get; set; }
18+
public IDictionary<string, object> Properties { get; set; }
1919

2020
internal Page(string userId,
2121
string name,

Analytics/Model/Screen.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Text;
44

@@ -9,13 +9,13 @@ namespace Segment.Model
99
public class Screen : BaseAction
1010
{
1111
[JsonProperty(PropertyName = "name")]
12-
private string Name { get; set; }
12+
public string Name { get; set; }
1313

1414
[JsonProperty(PropertyName = "category")]
15-
private string Category { get; set; }
15+
public string Category { get; set; }
1616

1717
[JsonProperty(PropertyName = "properties")]
18-
private IDictionary<string, object> Properties { get; set; }
18+
public IDictionary<string, object> Properties { get; set; }
1919

2020
internal Screen(string userId,
2121
string name,

Analytics/Model/Track.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Text;
44

@@ -9,10 +9,10 @@ namespace Segment.Model
99
public class Track : BaseAction
1010
{
1111
[JsonProperty(PropertyName = "event")]
12-
private string EventName { get; set; }
12+
public string EventName { get; set; }
1313

1414
[JsonProperty(PropertyName = "properties")]
15-
private IDictionary<string, object> Properties { get; set; }
15+
public IDictionary<string, object> Properties { get; set; }
1616

1717
internal Track(string userId,
1818
string eventName,

0 commit comments

Comments
 (0)