Professional Documents
Culture Documents
Class:
Group:
Group members:
1
1. Identify Objects and their attributes, operations in the problem
with the given Topic.
2
+ setPhone(string phone): set phone
+ setPassword(string password): set password
+ setGender(int gender): set gender
+ setStatus(int status): set status
+ setRoleId(int roleId): set roleId
+ setImageAvt(string imageavt): set image avatar
+ setListNotification( List<Notification> ListNotification): set list
notification
3
+ Picture(): Default constructor
+ Picture(int id, string name, string size, string url, Date time_create,
string user_create, int post_id, List<Tag> ListTag, int album_id,,
List<Like> ListLike, int CategoryPicture_Id): Constructor with
parameters
+ getId(): get id
+ getName(): get name
+ getSize(): get size
+ getUrl(): get url
+ getTimeCreate(): get time create
+ getUserCreate(): get user create
+ getListTag(): get list tag of picture
+ getAlbumId(): get album id
+ getPostId(): get post id
+ getListLike(): return list user like picture
+ getCategoryPictureId(): return CategoryPicture Id
+ setId(int id): set id
+ setName(string name): set name
+ setSize(int size): set size
+ setUrl(string url): set url
+ setTimeCreate(Date timeCreate): set time create
+ setUserCreate(string userCreate): set user create
+ setAlbumId(int album_id): set album id
+ setPostId(int post_id): set post id
+ setListTag(List<Tag> ListTag): set list tag
+ setListLike(List<Like> ListLike): set List user like picture
+ setCategoryPictureId(int CategoryPicture_Id): set category picture id
● uploadNewPicture(Picture): upload new picture
● deletePicture(id): delete picture
● editInformationPicture(Picture): update information of picture
● viewInfomationPicture(Picture): view information of picture
● viewListPostSharePicture(picture_id): view list post share picture
● viewListCommentPicture(picture_id): view list comment of picture
● viewListLikePicture(picture_id): view list user like picture
d. Album
- Attributes:
+ Id: int
+ Name: string
+ Description: string
+ Time_create: date
+ Username: string
+ ListPicture: List<Picture>
- Functions:
+ Albums(): Default constructor
+ Albums(int id, string name, string description, date TimeCreate,
List<Picture> ListPicture, string username): Constructor with
parameter
+ getId(): get id
+ getName(): get name
+ getDescription(): get description
+ getTimeCreate(): get time create
+ getUsername(): getUsername
+ getListPicture(): get list picture
4
+ setId(int id): set id
+ setName(string name): set name
+ setDescription(string description): set description
+ setTimeCreate(string timeCreate): set time create
+ setUsername(string username): set username
+ setListPicture(List<Picture> ListPicture): set list picture
5
+ TagName: string
+ ListPicture: List<Picture>
- Functions:
+ Tags(): default constructor
+ Tags(int id, string tagname, List<Picture> ListPicture): Constructor
with full parameters
+ getId(): return id
+ getTagName(): return tagName
+ getListPicture(): return list picture
+ setId(int id): set Id
+ setTagName(string tagName): set tag name
+ setListPicture(List<Picture> ListPicture): set list picture
6
+ setUserReport(string User_report): set user report
+ setTimeReport(date Time_report): set time report
+ setPicture_id(int Picture_id): set Picture id reported
+ setPost_id(int Post_id): set Postid reported
+ setDescription(string Description): set Description
+ setListReportCategory(List<ReportCategory> ListReportCategory): set
list Report Category
7
+ Username: string
- Functions:
+ Notification(): default constructor
+ Notification(int id, string name, string description, string username):
Constructor with full parameters
+ getNotificationId(): return notification id
+ getNotificationName(): return Notification name
+ getDescription(): return Description of the notification
+ getUsername(): return Username of the notification
+ setNotificationId(int id): set notification id
+ setNotificationName(string name): set Notification name
+ setDescription(string description): set Description of the notification
+ setUsername(string username): set Username of the notification
+ GetNotification(int id): get Notification by Notification Id.
l. Feedback
- Attributes:
+ FeedbackID: int
+ Username: string
+ Description: string
+ Time_create: date
+ Star: int
- Functions:
+ Feedback(): Default constructor
+ Feedback(int feedbackID, string username, string description, Date
TimeCreate, int star): Constructor with parameter
+ getFeedbackId(): return id
+ getUserName(): return user name
+ getDescription(): return description
+ getTimeCreate(): return time create
+ getStar(): return star
+ setFeedbackId(int id): get id
+ setUserName(string UserName): set user name
+ setDescription(string Description): set description
+ setTimeCreate(Date Time_create): set time create
+ setStar(int Star): setStar
8
PostedBy, string Author, List<QuestionTag ListQuestionTag):
Constructor with parameter
+ GetQuestionId(): Get question Id
+ GetQuestionContent(): Get question content
+ GetQuestionStates(): Get question states
+ GetPostedAt(): Get first post time
+ GetLastModified(): Get last modified time
+ GetAuthor(): Get question’s author
+ GetQuestionTags(): Get list question tag
+ SetQuestionId(int QuestionId): Set question Id
+ SetQuestionContent(string QuestionContent): Set question content
+ SetQuestionStates(string QuestionStates): Set question state
+ SetPostedAt(Datetime PostedAt): Set first time that question was
posted.
+ SetLastModified(Datetime LastModified): Set last time that question
was modified.
+ SetAuthor(int Author): Set author of question
+ SetQuestionTags( List<QuestionTag> ListQuestionTag): Set list tag of
question.
9
+ setIsChosen(bool isChosen): set status of the answer that is highlight
or not
+ SetQuestionId(int QuestionId): set question Id of the answer
2. Draw Use Case diagram
10
3. Draw Class Diagram
a. Admin Class Diagram
11
b. User diagram
12
c. Supporter Diagram
13
4. Make Identification of components
14