Diverse Änderungen am ChatServer
This commit is contained in:
@@ -86,11 +86,9 @@ namespace BeWoPlanerAndroid
|
||||
[WebMethod(EnableSession = true)]
|
||||
public string GetAllChatMessagesForSenderAndRecipient(long pSenderPersonOid, long pRecipientPersonOid, string pExceptions, bool pIsForTeam)
|
||||
{
|
||||
Debug.WriteLine(pExceptions);
|
||||
|
||||
var exceptions = new List<long>();
|
||||
|
||||
if (pExceptions.Length > 0 && pExceptions.Contains(";"))
|
||||
if (pExceptions.Length > 0)
|
||||
{
|
||||
var splittedString = pExceptions.Split(';');
|
||||
exceptions = splittedString.Select(item => Convert.ToInt64(item)).ToList();
|
||||
@@ -98,7 +96,7 @@ namespace BeWoPlanerAndroid
|
||||
|
||||
var messages = DAOFactory.SearchDAO.FindAllChatMessagesForAndroid(pSenderPersonOid, pRecipientPersonOid, exceptions, pIsForTeam);
|
||||
|
||||
messages.DoForEach(dfe => Debug.WriteLine(dfe.Oid.Value));
|
||||
messages.DoForEach(m => Debug.WriteLine("Team: " + (m.TeamOid == null ? "Nein" : m.TeamOid.Value.ToString()) + "; Text: " + m.ChatText));
|
||||
|
||||
return JsonConvert.SerializeObject(messages);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user