2626import com .linecorp .bot .model .ReplyMessage ;
2727import com .linecorp .bot .model .event .source .GroupSource ;
2828import com .linecorp .bot .model .event .source .RoomSource ;
29- import com .linecorp .bot .model .manageaudience .AudienceGroupCreateRoute ;
30- import com .linecorp .bot .model .manageaudience .AudienceGroupStatus ;
31- import com .linecorp .bot .model .manageaudience .request .AddAudienceToAudienceGroupRequest ;
32- import com .linecorp .bot .model .manageaudience .request .CreateAudienceGroupRequest ;
33- import com .linecorp .bot .model .manageaudience .request .CreateClickBasedAudienceGroupRequest ;
34- import com .linecorp .bot .model .manageaudience .request .CreateImpBasedAudienceGroupRequest ;
35- import com .linecorp .bot .model .manageaudience .request .UpdateAudienceGroupAuthorityLevelRequest ;
36- import com .linecorp .bot .model .manageaudience .request .UpdateAudienceGroupDescriptionRequest ;
37- import com .linecorp .bot .model .manageaudience .response .CreateAudienceGroupResponse ;
38- import com .linecorp .bot .model .manageaudience .response .CreateClickBasedAudienceGroupResponse ;
39- import com .linecorp .bot .model .manageaudience .response .CreateImpBasedAudienceGroupResponse ;
40- import com .linecorp .bot .model .manageaudience .response .GetAudienceDataResponse ;
41- import com .linecorp .bot .model .manageaudience .response .GetAudienceGroupAuthorityLevelResponse ;
42- import com .linecorp .bot .model .manageaudience .response .GetAudienceGroupsResponse ;
4329import com .linecorp .bot .model .profile .MembersIdsResponse ;
4430import com .linecorp .bot .model .profile .UserProfileResponse ;
4531import com .linecorp .bot .model .response .BotApiResponse ;
5642import com .linecorp .bot .model .richmenu .RichMenuListResponse ;
5743import com .linecorp .bot .model .richmenu .RichMenuResponse ;
5844
59- import retrofit2 .http .Body ;
60-
6145public interface LineMessagingClient {
6246 /**
6347 * Reply to messages from users.
@@ -152,7 +136,7 @@ public interface LineMessagingClient {
152136 * retrieved by this operation does not include the number of messages sent from LINE@ Manager.
153137 *
154138 * @param date Date the messages were sent. The format should be {@code yyyyMMdd} (for Example:
155- * {@literal "20191231"}) and the timezone should be UTC+9.
139+ * {@literal "20191231"}) and the timezone should be UTC+9.
156140 */
157141 CompletableFuture <NumberOfMessagesResponse > getNumberOfSentReplyMessages (String date );
158142
@@ -161,7 +145,7 @@ public interface LineMessagingClient {
161145 * retrieved by this operation does not include the number of messages sent from LINE@ Manager.
162146 *
163147 * @param date Date the messages were sent. The format should be {@code yyyyMMdd} (for Example:
164- * {@literal "20191231"}) and the timezone should be UTC+9.
148+ * {@literal "20191231"}) and the timezone should be UTC+9.
165149 */
166150 CompletableFuture <NumberOfMessagesResponse > getNumberOfSentPushMessages (String date );
167151
@@ -170,7 +154,7 @@ public interface LineMessagingClient {
170154 * retrieved by this operation does not include the number of messages sent from LINE@ Manager.
171155 *
172156 * @param date Date the messages were sent. The format should be {@code yyyyMMdd} (for Example:
173- * {@literal "20191231"}) and the timezone should be UTC+9.
157+ * {@literal "20191231"}) and the timezone should be UTC+9.
174158 */
175159 CompletableFuture <NumberOfMessagesResponse > getNumberOfSentMulticastMessages (String date );
176160
@@ -183,7 +167,7 @@ public interface LineMessagingClient {
183167 * Migration of LINE@ accounts</a>.
184168 *
185169 * @param date Date the messages were sent. The format should be {@code yyyyMMdd} (for Example:
186- * {@literal "20191231"}) and the timezone should be UTC+9.
170+ * {@literal "20191231"}) and the timezone should be UTC+9.
187171 */
188172 CompletableFuture <NumberOfMessagesResponse > getNumberOfSentBroadcastMessages (String date );
189173
@@ -199,7 +183,6 @@ public interface LineMessagingClient {
199183 *
200184 * @param groupId Identifier of the group. Can be get by {@link GroupSource#getGroupId()}.
201185 * @param userId Identifier of the user.
202- *
203186 * @see <a href="https://developers.line.me/en/reference/messaging-api/#get-group-member-profile">//developers.line.me/en/reference/messaging-api/#get-group-member-profile</a>
204187 */
205188 CompletableFuture <UserProfileResponse > getGroupMemberProfile (String groupId , String userId );
@@ -209,7 +192,6 @@ public interface LineMessagingClient {
209192 *
210193 * @param roomId Identifier of the group. Can be get by {@link RoomSource#getRoomId()}.
211194 * @param userId Identifier of the user.
212- *
213195 * @see <a href="https://developers.line.me/en/reference/messaging-api/#get-room-member-profile">//developers.line.me/en/reference/messaging-api/#get-room-member-profile</a>
214196 */
215197 CompletableFuture <UserProfileResponse > getRoomMemberProfile (String roomId , String userId );
@@ -218,7 +200,6 @@ public interface LineMessagingClient {
218200 * Get (a part of) group member list.
219201 *
220202 * @param start nullable continuationToken which can be get {@link MembersIdsResponse#getNext()}
221- *
222203 * @see <a href="https://developers.line.me/en/reference/messaging-api/#get-group-member-user-ids">//developers.line.me/en/reference/messaging-api/#get-group-member-user-ids</a>
223204 * @see MembersIdsResponse#getNext()
224205 */
@@ -228,7 +209,6 @@ public interface LineMessagingClient {
228209 * Get (a part of) room member list.
229210 *
230211 * @param start nullable continuationToken which can be get {@link MembersIdsResponse#getNext()}
231- *
232212 * @see <a href="https://developers.line.me/en/reference/messaging-api/#get-room-member-user-ids">//developers.line.me/en/reference/messaging-api/#get-room-member-user-ids</a>
233213 * @see MembersIdsResponse#getNext()
234214 */
@@ -291,7 +271,7 @@ public interface LineMessagingClient {
291271 * Link rich menu to users.
292272 *
293273 * @see <a href="https://developers.line.biz/en/reference/messaging-api/#link-rich-menu-to-users">
294- * Link rich menu to multiple users</a>
274+ * Link rich menu to multiple users</a>
295275 */
296276 CompletableFuture <BotApiResponse > linkRichMenuIdToUsers (List <String > userIds , String richMenuId );
297277
@@ -306,7 +286,7 @@ public interface LineMessagingClient {
306286 * Unlink rich menu from users.
307287 *
308288 * @see <a href="https://developers.line.biz/en/reference/messaging-api/#unlink-rich-menu-from-users">
309- * Unlink rich menu to multiple users</a>
289+ * Unlink rich menu to multiple users</a>
310290 */
311291 CompletableFuture <BotApiResponse > unlinkRichMenuIdFromUsers (List <String > userIds );
312292
@@ -366,6 +346,7 @@ CompletableFuture<BotApiResponse> setRichMenuImage(
366346
367347 /**
368348 * Get number of message deliveries.
349+ *
369350 * @see LineMessagingService#getNumberOfMessageDeliveries(String)
370351 */
371352 CompletableFuture <GetNumberOfMessageDeliveriesResponse > getNumberOfMessageDeliveries (String date );
@@ -382,103 +363,6 @@ CompletableFuture<BotApiResponse> setRichMenuImage(
382363 */
383364 CompletableFuture <GetFriendsDemographicsResponse > getFriendsDemographics ();
384365
385- /**
386- * Creates an audience for uploading user IDs. You can create up to 1,000 audiences.
387- *
388- * @see <a href="https://developers.line.biz/en/reference/messaging-api/#create-upload-audience-group">
389- * Create audience for uploading user IDs</a>
390- */
391- CompletableFuture <CreateAudienceGroupResponse > createAudienceGroup (CreateAudienceGroupRequest request );
392-
393- /**
394- * Adds new user IDs or IFAs to an audience for uploading user IDs.
395- *
396- * @see <a href="https://developers.line.biz/en/reference/messaging-api/#update-upload-audience-group">
397- * Add user IDs or Identifiers for Advertisers (IFAs) to an audience for uploading user IDs</a>
398- */
399- CompletableFuture <BotApiResponse > addAudienceToAudienceGroup (
400- AddAudienceToAudienceGroupRequest request );
401-
402- /**
403- * Creates an audience for click-based retargeting.
404- *
405- * @see <a href="https://developers.line.biz/en/reference/messaging-api/#create-click-audience-group">
406- * Create audience for click-based retargeting</a>
407- */
408- CompletableFuture <CreateClickBasedAudienceGroupResponse > createClickBasedAudienceGroup (
409- CreateClickBasedAudienceGroupRequest request );
410-
411- /**
412- * Creates an audience for impression-based retargeting.
413- *
414- * @see <a href="https://developers.line.biz/en/reference/messaging-api/#create-imp-audience-group">
415- * Create audience for impression-based retargeting</a>
416- */
417- CompletableFuture <CreateImpBasedAudienceGroupResponse > createImpBasedAudienceGroup (
418- CreateImpBasedAudienceGroupRequest request );
419-
420- /**
421- * Renames an existing audience.
422- *
423- * @param audienceGroupId The audience ID.
424- * @see <a href="https://developers.line.biz/en/reference/messaging-api/#set-description-audience-group">
425- * Rename an audience</a>
426- */
427- CompletableFuture <BotApiResponse > updateAudienceGroupDescription (
428- long audienceGroupId , UpdateAudienceGroupDescriptionRequest request );
429-
430- /**
431- * Deletes an audience.
432- *
433- * @param audienceGroupId The audience ID.
434- * @see <a href="https://developers.line.biz/en/reference/messaging-api/#delete-audience-group">
435- * Delete audience</a>
436- */
437- CompletableFuture <BotApiResponse > deleteAudienceGroup (long audienceGroupId );
438-
439- /**
440- * Gets audience data.
441- *
442- * @param audienceGroupId The audience ID.
443- * @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-audience-group">
444- * Get audience data</a>
445- */
446- CompletableFuture <GetAudienceDataResponse > getAudienceData (long audienceGroupId );
447-
448- /**
449- * Gets data for more than one audience.
450- *
451- * @param page The page to return when getting (paginated) results. Specify a value of 1 or more.
452- * @param description The name of the audience(s) to return. You can search for partial matches.
453- * Comparisons are case-insensitive, so the names AUDIENCE and audience are considered
454- * identical.
455- * @param status The audience's status.
456- * @param size The number of audiences per page. This is 20 by default.
457- * Max: 40
458- * @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-audience-groups">
459- * Get data for multiple audiences</a>
460- */
461- CompletableFuture <GetAudienceGroupsResponse > getAudienceGroups (
462- long page , String description , AudienceGroupStatus status , Long size ,
463- Boolean includesExternalPublicGroups , AudienceGroupCreateRoute createRoute );
464-
465- /**
466- * Get audience group authority level.
467- *
468- * @see <a href="https://developers.line.biz/en/reference/messaging-api/#get-authority-level">
469- * Get authority level</a>
470- */
471- CompletableFuture <GetAudienceGroupAuthorityLevelResponse > getAudienceGroupAuthorityLevel ();
472-
473- /**
474- * Update audience group authority level.
475- *
476- * @see <a href="https://developers.line.biz/en/reference/messaging-api/#change-authority-level">
477- * Change authority level</a>
478- */
479- CompletableFuture <BotApiResponse > updateAudienceGroupAuthorityLevel (
480- @ Body UpdateAudienceGroupAuthorityLevelRequest request );
481-
482366 static LineMessagingClientBuilder builder (String channelToken ) {
483367 return builder (FixedChannelTokenSupplier .of (channelToken ));
484368 }
0 commit comments