GetAllEmoticons() public method

public GetAllEmoticons ( int startIndex, int maxResults = 100, EmoticonType type = EmoticonType.All ) : HipchatGetAllEmoticonsResponse
startIndex int
maxResults int
type EmoticonType
return HipchatGetAllEmoticonsResponse
Exemplo n.º 1
0
        public void CanGetAllEmoticons()
        {
            var client = new HipchatClient();

            var emoticons = client.GetAllEmoticons();

            Assert.Equal(100, emoticons.Items.Count);
        }
Exemplo n.º 2
0
        public void CanGetEmoticonByShortcut()
        {
            var client = new HipchatClient();
            var emoticons = client.GetAllEmoticons();
            var firstEmoticon = emoticons.Items[0];
            var emoticonByShortcut = client.GetEmoticon(firstEmoticon.Shortcut);

            Assert.Equal(firstEmoticon.Shortcut, emoticonByShortcut.Shortcut);
            Assert.True(emoticonByShortcut.Height > 0);
            Assert.True(emoticonByShortcut.Width > 0);
        }
Exemplo n.º 3
0
        public void CanGetEmoticonById()
        {
            var client = new HipchatClient();
            var emoticons = client.GetAllEmoticons();
            var firstEmoticon = emoticons.Items[0];
            var emoticonById = client.GetEmoticon(firstEmoticon.Id);

            Assert.Equal(firstEmoticon.Id, emoticonById.Id);
            Assert.True(emoticonById.Height > 0);
            Assert.True(emoticonById.Width > 0);
        }