Skip to content

Commit

Permalink
Added PostsReply
Browse files Browse the repository at this point in the history
Signed-off-by: Cadox8 <cadox8@gmail.com>
  • Loading branch information
cadox8 committed Feb 26, 2019
1 parent c67d402 commit 3c36c36
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Java-API/dependency-reduced-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>me.cadox8</groupId>
<artifactId>XenAPI</artifactId>
<version>0.4.1</version>
<version>0.4.3</version>
<build>
<plugins>
<plugin>
Expand Down
2 changes: 1 addition & 1 deletion Java-API/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<groupId>me.cadox8</groupId>
<artifactId>XenAPI</artifactId>
<packaging>jar</packaging>
<version>0.4.3</version>
<version>0.4.4</version>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
Expand Down
1 change: 1 addition & 0 deletions Java-API/src/me/cadox8/xenapi/reply/NodesReply.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
public class NodesReply extends AbstractReply {

@Getter private int count;
@Getter private NodesReply[] nodes;

@Override
public RequestType getRequestType() {
Expand Down
36 changes: 36 additions & 0 deletions Java-API/src/me/cadox8/xenapi/reply/PostsReply.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* Copyright (c) 2018.
*
* This file is part of XenAPI <https://github.com/cadox8/XenAPI>.
*
* XenAPI is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* XenAPI is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

package me.cadox8.xenapi.reply;

import lombok.Getter;
import lombok.ToString;
import me.cadox8.xenapi.request.RequestType;

@ToString
public class PostsReply extends AbstractReply {

@Getter private int count;
@Getter private PostReply posts[];

@Override
public RequestType getRequestType() {
return RequestType.EDIT_USER;
}
}
1 change: 1 addition & 0 deletions Java-API/src/me/cadox8/xenapi/request/RequestType.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public enum RequestType {
GET_NODE("getNode", NodeReply.class),
GET_NODES("getNodes", NodesReply.class),
GET_POST("getPost", PostReply.class),
GET_POSTS("getPosts", PostsReply.class),
GET_AVATAR("getAvatar", AvatarReply.class);


Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@ If you appreciate my work and want to help me maintaining this or other projects

## TODO
* [x] Add a proper copyright header to all files.
* [ ] Deploy to a public maven repo.
* [ ] Update to Xenforo 2.0
* [ ] Better and more documentation
* [x] Deploy to a public maven repo.
* [x] Update to Xenforo 2.0
* [x] Better and more documentation
* [ ] Build a full Java-api
* [x] Feed the Cat

Expand All @@ -150,10 +150,10 @@ If you appreciate my work and want to help me maintaining this or other projects
* [ ] Get Conversation
* [ ] Get Conversations
* [ ] Get Group
* [ ] Get Node
* [ ] Get Nodes
* [ ] Get Post
* [ ] Get Posts
* [x] Get Node
* [x] Get Nodes
* [x] Get Post
* [x] Get Posts
* [ ] Get Profile Post
* [ ] Get Profile Posts
* [ ] Get Resource
Expand Down

0 comments on commit 3c36c36

Please sign in to comment.