diff --git a/src/com/annimon/client/entities/ForumPost.java b/src/com/annimon/client/entities/ForumPost.java index 325d027..4f1aa29 100644 --- a/src/com/annimon/client/entities/ForumPost.java +++ b/src/com/annimon/client/entities/ForumPost.java @@ -2,17 +2,26 @@ package com.annimon.client.entities; public class ForumPost { - private String forumTitle; + private int topicId; + private String topicTitle; private String author; - private String date; + private int date; private String message; - public String getForumTitle() { - return forumTitle; + public int getTopicId() { + return topicId; } - public void setForumTitle(String forumTitle) { - this.forumTitle = forumTitle; + public void setTopicId(int topicId) { + this.topicId = topicId; + } + + public String getTopicTitle() { + return topicTitle; + } + + public void setTopicTitle(String forumTitle) { + this.topicTitle = forumTitle; } public String getAuthor() { @@ -24,14 +33,18 @@ public class ForumPost { } - public String getDate() { - return date; + public int getDateTimestamp() { + return date; } - public void setDate(String date) { + public void setDate(int date) { this.date = date; } + public String getDate() { + return "Дата: " + date; + } + public String getMessage() { return message; }