Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NGスコアの追加 #16

Merged
merged 1 commit into from
Feb 14, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions Assets/NicoliveClient/Plugins/Comment/Chat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,13 @@ public struct Chat
/// </summary>
public int RoomId { get; private set; }

public Chat(string thread, long vpos, long date, string mail, string userId, int premium, bool anonymity, string content, int no, int roomId) : this()
/// <summary>
/// NGスコア
/// </summary>
/// <value></value>
public int Score { get; private set; }

public Chat(string thread, long vpos, long date, string mail, string userId, int premium, bool anonymity, string content, int no, int roomId, int score) : this()
{
Thread = thread;
Vpos = vpos;
Expand All @@ -69,6 +75,7 @@ public Chat(string thread, long vpos, long date, string mail, string userId, int
Content = content;
No = no;
RoomId = roomId;
Score = score;
}

/// <summary>
Expand Down Expand Up @@ -100,6 +107,7 @@ internal struct ChatDto
public int anonymity;
public string content;
public int no;
public int score;

public bool IsSuccess()
{
Expand All @@ -118,7 +126,8 @@ public Chat ToChat(int roomId)
anonymity > 0,
content,
no,
roomId
roomId,
score
);
}
}
Expand Down