@@ -12,7 +12,7 @@ public interface ICheepService
12
12
/// </summary>
13
13
/// <param name="page">if it's less than or equal to zero, It's treated as 1</param>
14
14
/// <param name="pageSize">how many cheeps are on a page. Must be greater than zero</param>
15
- /// <exception cref="ArgumentOutOfRangeException">Thrown if the <paramref name="pageSize"/> less than one</exception>
15
+ /// <exception cref="ArgumentOutOfRangeException">Thrown if the <paramref name="pageSize"/> is less than one</exception>
16
16
public IEnumerable < CheepDTO > GetCheepsByPage ( int page , int pageSize ) ;
17
17
18
18
/// <summary>
@@ -21,7 +21,7 @@ public interface ICheepService
21
21
/// <param name="usernames"></param>
22
22
/// <param name="page">if it's less than or equal to zero, It's treated as 1</param>
23
23
/// <param name="pageSize">how many cheeps are on a page. Must be greater than zero</param>
24
- /// <exception cref="ArgumentOutOfRangeException">Thrown if the <paramref name="pageSize"/> less than one</exception>
24
+ /// <exception cref="ArgumentOutOfRangeException">Thrown if the <paramref name="pageSize"/> is less than one</exception>
25
25
public IEnumerable < CheepDTO > GetCheepsFromAuthorsByPage ( IEnumerable < string > usernames , int page , int pageSize ) ;
26
26
27
27
/// <summary>
@@ -31,22 +31,20 @@ public interface ICheepService
31
31
public IEnumerable < CheepDTO > GetCheepsFromAuthor ( string username ) ;
32
32
33
33
/// <summary>
34
- /// Gets the amount of pages that are needed to display all the cheeps in the database,
35
- /// given the page size
34
+ /// Gets the amount of pages cheeped by an author with a given page size
36
35
/// </summary>
37
36
/// <param name="pageSize">how many cheeps are on a page. Must be greater than zero</param>
38
37
/// <returns>The result is rounded to the next larger int</returns>
39
- /// <exception cref="ArgumentOutOfRangeException">Thrown if the <paramref name="pageSize"/> less than one</exception>
38
+ /// <exception cref="ArgumentOutOfRangeException">Thrown if the <paramref name="pageSize"/> is less than one</exception>
40
39
public int GetAmountOfCheepPages ( int pageSize ) ;
41
40
42
41
/// <summary>
43
- /// Gets the amount of pages that are needed author to display all Cheeps made by the given authors,
44
- /// given the page size
42
+ /// Gets the amount of pages cheeped by a collection of authors with a given page size
45
43
/// </summary>
46
44
/// <param name="usernames">the usernames of the authors</param>
47
45
/// <param name="pageSize">how many cheeps are on a page. Must be greater than zero</param>
48
46
/// <returns>the result is rounded to the next larger int</returns>
49
- /// <exception cref="ArgumentOutOfRangeException">Thrown if the <paramref name="pageSize"/> less than one</exception>
47
+ /// <exception cref="ArgumentOutOfRangeException">Thrown if the <paramref name="pageSize"/> is less than one</exception>
50
48
public int GetAmountOfCheepPagesFromAuthors ( IEnumerable < string > usernames , int pageSize ) ;
51
49
52
50
/// <summary>
@@ -61,26 +59,26 @@ public interface ICheepService
61
59
/// Creates a new comment from the given CommentDTO
62
60
/// </summary>
63
61
/// <param name="comment"></param>
64
- /// <returns>True if a comment vas successfully created,
62
+ /// <returns>True if a comment was successfully created,
65
63
/// false if either the author said to have created the comment,
66
64
/// or the cheep said to have been commented, doesn't exist</returns>
67
65
public bool CreateComment ( CommentDTO comment ) ;
68
66
69
67
/// <summary>
70
- /// Gets the amount of Comments associated with the cheep that has the given CheepID
68
+ /// Gets the amount of Comments associated with the cheep that has the given CheepId
71
69
/// </summary>
72
70
/// <param name="cheepId"></param>
73
71
/// <returns>If <paramref name="cheepId"/> is null, 0 is returned</returns>
74
72
public int GetCommentAmountOnCheep ( int ? cheepId ) ;
75
73
76
74
/// <summary>
77
- /// Gets the Cheep associated with the given CheepID
75
+ /// Gets the Cheep associated with the given CheepId
78
76
/// </summary>
79
77
/// <param name="cheepId"></param>
80
78
public CheepDTO GetCheepFromId ( int cheepId ) ;
81
79
82
80
/// <summary>
83
- /// Gets all Comments associated with the cheep that has the given CheepID
81
+ /// Gets all Comments associated with the cheep that has the given CheepId
84
82
/// </summary>
85
83
/// <param name="cheepId"></param>
86
84
public IEnumerable < CommentDTO > GetCommentsFromCheep ( int cheepId ) ;
@@ -104,14 +102,14 @@ public interface ICheepService
104
102
public bool UnlikeCheep ( LikeDTO like ) ;
105
103
106
104
/// <summary>
107
- /// Gets how many Likes are associated with some Cheep given the CheepID
105
+ /// Gets how many Likes are associated with some Cheep given the CheepId
108
106
/// </summary>
109
107
/// <param name="cheepId"></param>
110
108
/// <returns>0 if there isn't a cheep associated with the given <paramref name="cheepId"/></returns>
111
109
public Task < int > GetLikeCount ( int cheepId ) ;
112
110
113
111
/// <summary>
114
- /// Returns whether an author with the given usernames has liked the cheep with the given CheepID
112
+ /// Returns whether an author with the given username has liked the cheep with the given CheepId
115
113
/// </summary>
116
114
/// <param name="cheepId"></param>
117
115
/// <param name="username"></param>
0 commit comments