Skip to content

Commit 40c5d38

Browse files
committed
Remove 'Likes', add 'Saves' and obsolete 'Repins'
#6
1 parent 1ca26f7 commit 40c5d38

3 files changed

Lines changed: 14 additions & 7 deletions

File tree

PinSharp/Models/Counts/Counts.cs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
namespace PinSharp.Models.Counts
1+
using System;
2+
using Newtonsoft.Json;
3+
4+
namespace PinSharp.Models.Counts
25
{
36
public class Counts : IBoardCounts, IPinCounts, IUserCounts
47
{
@@ -7,8 +10,10 @@ public class Counts : IBoardCounts, IPinCounts, IUserCounts
710
public int Comments { get; set; }
811
public int Followers { get; set; }
912
public int Following { get; set; }
10-
public int Likes { get; set; }
1113
public int Pins { get; set; }
12-
public int Repins { get; set; }
14+
public int Saves { get; set; }
15+
16+
[Obsolete("Use 'Saves' instead. This property will be removed in a future version")]
17+
public int Repins => Saves;
1318
}
1419
}
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using Newtonsoft.Json;
1+
using System;
2+
using Newtonsoft.Json;
23
using PinSharp.Serialization;
34

45
namespace PinSharp.Models.Counts
@@ -7,7 +8,9 @@ namespace PinSharp.Models.Counts
78
public interface IPinCounts
89
{
910
int Comments { get; set; }
10-
int Likes { get; set; }
11-
int Repins { get; set; }
11+
int Saves { get; set; }
12+
13+
[Obsolete("Use 'Saves' instead. This property will be removed in a future version")]
14+
int Repins { get; }
1215
}
1316
}

PinSharp/Models/Counts/IUserCounts.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ public interface IUserCounts
99
int Boards { get; set; }
1010
int Followers { get; set; }
1111
int Following { get; set; }
12-
int Likes { get; set; }
1312
int Pins { get; set; }
1413
}
1514
}

0 commit comments

Comments
 (0)