-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1663be0
commit 7609085
Showing
17 changed files
with
879 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
104 changes: 104 additions & 0 deletions
104
src/main/java/com/recombee/api_client/api_requests/DeleteViewPortion.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
package com.recombee.api_client.api_requests; | ||
|
||
/* | ||
This file is auto-generated, do not edit | ||
*/ | ||
|
||
import java.util.Date; | ||
import java.util.Map; | ||
import java.util.HashMap; | ||
|
||
import com.recombee.api_client.util.HTTPMethod; | ||
|
||
/** | ||
* The view portions feature is currently experimental. | ||
* Deletes an existing view portion specified by (`userId`, `itemId`, `sessionId`) from the database. | ||
*/ | ||
public class DeleteViewPortion extends Request { | ||
|
||
/** | ||
* ID of the user who rated the item. | ||
*/ | ||
protected String userId; | ||
/** | ||
* ID of the item which was rated. | ||
*/ | ||
protected String itemId; | ||
/** | ||
* Identifier of a session. | ||
*/ | ||
protected String sessionId; | ||
|
||
/** | ||
* Construct the request | ||
* @param userId ID of the user who rated the item. | ||
* @param itemId ID of the item which was rated. | ||
*/ | ||
public DeleteViewPortion (String userId,String itemId) { | ||
this.userId = userId; | ||
this.itemId = itemId; | ||
this.timeout = 1000; | ||
} | ||
|
||
/** | ||
* @param sessionId Identifier of a session. | ||
*/ | ||
public DeleteViewPortion setSessionId(String sessionId) { | ||
this.sessionId = sessionId; | ||
return this; | ||
} | ||
|
||
public String getUserId() { | ||
return this.userId; | ||
} | ||
|
||
public String getItemId() { | ||
return this.itemId; | ||
} | ||
|
||
public String getSessionId() { | ||
return this.sessionId; | ||
} | ||
|
||
/** | ||
* @return Used HTTP method | ||
*/ | ||
@Override | ||
public HTTPMethod getHTTPMethod() { | ||
return HTTPMethod.DELETE; | ||
} | ||
|
||
/** | ||
* @return URI to the endpoint including path parameters | ||
*/ | ||
@Override | ||
public String getPath() { | ||
return "/viewportions/"; | ||
} | ||
|
||
/** | ||
* Get query parameters | ||
* @return Values of query parameters (name of parameter: value of the parameter) | ||
*/ | ||
@Override | ||
public Map<String, Object> getQueryParameters() { | ||
HashMap<String, Object> params = new HashMap<String, Object>(); | ||
params.put("userId", this.userId.toString()); | ||
params.put("itemId", this.itemId.toString()); | ||
if (this.sessionId!=null) { | ||
params.put("sessionId", this.sessionId.toString()); | ||
} | ||
return params; | ||
} | ||
|
||
/** | ||
* Get body parameters | ||
* @return Values of body parameters (name of parameter: value of the parameter) | ||
*/ | ||
@Override | ||
public Map<String, Object> getBodyParameters() { | ||
HashMap<String, Object> params = new HashMap<String, Object>(); | ||
return params; | ||
} | ||
|
||
} |
74 changes: 74 additions & 0 deletions
74
src/main/java/com/recombee/api_client/api_requests/ListItemViewPortions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
package com.recombee.api_client.api_requests; | ||
|
||
/* | ||
This file is auto-generated, do not edit | ||
*/ | ||
|
||
import java.util.Date; | ||
import java.util.Map; | ||
import java.util.HashMap; | ||
|
||
import com.recombee.api_client.util.HTTPMethod; | ||
|
||
/** | ||
* The view portions feature is currently experimental. | ||
* List all the view portions of an item ever submitted by different users. | ||
*/ | ||
public class ListItemViewPortions extends Request { | ||
|
||
/** | ||
* ID of the item of which the view portions are to be listed. | ||
*/ | ||
protected String itemId; | ||
|
||
/** | ||
* Construct the request | ||
* @param itemId ID of the item of which the view portions are to be listed. | ||
*/ | ||
public ListItemViewPortions (String itemId) { | ||
this.itemId = itemId; | ||
this.timeout = 100000; | ||
} | ||
|
||
|
||
public String getItemId() { | ||
return this.itemId; | ||
} | ||
|
||
/** | ||
* @return Used HTTP method | ||
*/ | ||
@Override | ||
public HTTPMethod getHTTPMethod() { | ||
return HTTPMethod.GET; | ||
} | ||
|
||
/** | ||
* @return URI to the endpoint including path parameters | ||
*/ | ||
@Override | ||
public String getPath() { | ||
return String.format("/items/%s/viewportions/", this.itemId); | ||
} | ||
|
||
/** | ||
* Get query parameters | ||
* @return Values of query parameters (name of parameter: value of the parameter) | ||
*/ | ||
@Override | ||
public Map<String, Object> getQueryParameters() { | ||
HashMap<String, Object> params = new HashMap<String, Object>(); | ||
return params; | ||
} | ||
|
||
/** | ||
* Get body parameters | ||
* @return Values of body parameters (name of parameter: value of the parameter) | ||
*/ | ||
@Override | ||
public Map<String, Object> getBodyParameters() { | ||
HashMap<String, Object> params = new HashMap<String, Object>(); | ||
return params; | ||
} | ||
|
||
} |
74 changes: 74 additions & 0 deletions
74
src/main/java/com/recombee/api_client/api_requests/ListUserViewPortions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
package com.recombee.api_client.api_requests; | ||
|
||
/* | ||
This file is auto-generated, do not edit | ||
*/ | ||
|
||
import java.util.Date; | ||
import java.util.Map; | ||
import java.util.HashMap; | ||
|
||
import com.recombee.api_client.util.HTTPMethod; | ||
|
||
/** | ||
* The view portions feature is currently experimental. | ||
* List all the view portions ever submitted by a given user. | ||
*/ | ||
public class ListUserViewPortions extends Request { | ||
|
||
/** | ||
* ID of the user whose view portions are to be listed. | ||
*/ | ||
protected String userId; | ||
|
||
/** | ||
* Construct the request | ||
* @param userId ID of the user whose view portions are to be listed. | ||
*/ | ||
public ListUserViewPortions (String userId) { | ||
this.userId = userId; | ||
this.timeout = 100000; | ||
} | ||
|
||
|
||
public String getUserId() { | ||
return this.userId; | ||
} | ||
|
||
/** | ||
* @return Used HTTP method | ||
*/ | ||
@Override | ||
public HTTPMethod getHTTPMethod() { | ||
return HTTPMethod.GET; | ||
} | ||
|
||
/** | ||
* @return URI to the endpoint including path parameters | ||
*/ | ||
@Override | ||
public String getPath() { | ||
return String.format("/users/%s/viewportions/", this.userId); | ||
} | ||
|
||
/** | ||
* Get query parameters | ||
* @return Values of query parameters (name of parameter: value of the parameter) | ||
*/ | ||
@Override | ||
public Map<String, Object> getQueryParameters() { | ||
HashMap<String, Object> params = new HashMap<String, Object>(); | ||
return params; | ||
} | ||
|
||
/** | ||
* Get body parameters | ||
* @return Values of body parameters (name of parameter: value of the parameter) | ||
*/ | ||
@Override | ||
public Map<String, Object> getBodyParameters() { | ||
HashMap<String, Object> params = new HashMap<String, Object>(); | ||
return params; | ||
} | ||
|
||
} |
Oops, something went wrong.