Exemplo n.º 1
0
    private PostAround.Entities.MyMessage GetMessageByID(int msgId)
    {
        string currLon = "", currLat = "";
        int regionId = 0;
        int timeZone = 0;
        int userId = 0;

        userId = Tools.GetUserIdFromCookie(Context);
        //if (userId <= 0)
        //{
        //    AddCommentPanel.Visible = false;
        //}

        PostAroundServiceClient client = new PostAroundServiceClient();

        PostAround.Entities.MyMessage message = client.GetMessageById(msgId, currLon, currLat, regionId, timeZone, userId);
        if (message != null)
        {
            message.comments = client.GetCommentsByMessageID(message.msgId, userId, timeZone, 0);
        }

        client.Close();

        return message;
    }
Exemplo n.º 2
0
    private MyMessage GetMessageByID(int msgId)
    {
        string currLon = "", currLat = "";
        int regionId = 0;
        int timeZone = 0;
        int userId = 0;

        userId = 0;

        PostAroundServiceClient client = new PostAroundServiceClient();

        PostAround.Entities.MyMessage message = client.GetMessageById(msgId, currLon, currLat, regionId, timeZone, userId);
        if (message != null)
        {
            message.comments = client.GetCommentsByMessageID(message.msgId, userId, timeZone, 0);
        }

        client.Close();

        return message;
    }