Skip to content

Commit

Permalink
fixed id bug, see previous commit (9368631)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Kuffner committed Feb 19, 2020
1 parent 9368631 commit 617327f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/YammerShell/CmdLets/SearchYmItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,13 @@ private YammerGroup GetYammerGroup(JToken group)
private YammerMessage GetYammerMessage(JToken message)
{
var yammerMessage = new YammerMessage();
yammerMessage.Id = Convert.ToInt32(message["id"]);
yammerMessage.SenderId = Convert.ToInt32(message["sender_id"]);
yammerMessage.RepliedToId = message.Value<int?>("replied_to_id");
yammerMessage.Id = message["id"].ToString();
yammerMessage.SenderId = message["sender_id"].ToString();
yammerMessage.RepliedToId = message.Value<string>("replied_to_id");
yammerMessage.CreatedAt = (DateTime)message["created_at"];
yammerMessage.NetworkId = Convert.ToInt32(message["network_id"]);
yammerMessage.NetworkId = message["network_id"].ToString();
yammerMessage.MessageType = message["message_type"].ToString();
yammerMessage.GroupId = message.Value<int?>("group_id");
yammerMessage.GroupId = message.Value<string>("group_id");
yammerMessage.Body = message["body"]["plain"].ToString();
yammerMessage.Url = message["web_url"].ToString();

Expand Down

0 comments on commit 617327f

Please sign in to comment.