@@ -0,0 +1,2131 @@
+package com.growthbeat.analytics.model;%0A%0Aimport java.util.HashMap;%0Aimport java.util.List;%0Aimport java.util.Map;%0A%0Aimport org.codehaus.jackson.type.TypeReference;%0A%0Aimport com.growthbeat.Context;%0Aimport com.growthbeat.http.JsonUtils;%0A%0Apublic class ClientTag %7B%0A%0A%09private String clientId;%0A%09private String tagId;%0A%09private String value;%0A%0A%09public static ClientTag findByClientIdAndTagId(String clientId, String tagId, Context context) %7B%0A%09%09Map%3CString, Object%3E params = new HashMap%3CString, Object%3E();%0A%09%09params.put(%22clientId%22, clientId);%0A%09%09params.put(%22tagId%22, tagId);%0A%09%09String json = context.getGrowthbeatHttpClient().get(%22/1/client_tags/%22, params);%0A%09%09return JsonUtils.deserialize(json, ClientTag.class);%0A%09%7D%0A%0A%09public static List%3CClientTag%3E findByClientId(String clientId, Context context) %7B%0A%09%09Map%3CString, Object%3E params = new HashMap%3CString, Object%3E();%0A%09%09params.put(%22clientId%22, clientId);%0A%09%09String json = context.getGrowthbeatHttpClient().get(%22/1/client_tags%22, params);%0A%09%09return JsonUtils.deserialize(json, new TypeReference%3CList%3CClientTag%3E%3E() %7B%0A%09%09%7D);%0A%09%7D%0A%0A%09public static List%3CClientTag%3E findByTagId(String tagId, Context context) %7B%0A%09%09Map%3CString, Object%3E params = new HashMap%3CString, Object%3E();%0A%09%09params.put(%22tagId%22, tagId);%0A%09%09String json = context.getGrowthbeatHttpClient().get(%22/1/client_tags%22, params);%0A%09%09return JsonUtils.deserialize(json, new TypeReference%3CList%3CClientTag%3E%3E() %7B%0A%09%09%7D);%0A%09%7D%0A%0A%09public static ClientTag create(String clientId, String tagId, String value, Context context) %7B%0A%09%09Map%3CString, Object%3E params = new HashMap%3CString, Object%3E();%0A%09%09params.put(%22clientId%22, clientId);%0A%09%09params.put(%22tagId%22, tagId);%0A%09%09params.put(%22value%22, value);%0A%09%09String json = context.getGrowthbeatHttpClient().post(%22/1/client_tags%22, params);%0A%09%09return JsonUtils.deserialize(json, ClientTag.class);%0A%09%7D%0A%0A%09public String getClientId() %7B%0A%09%09return clientId;%0A%09%7D%0A%0A%09public void setClientId(String clientId) %7B%0A%09%09this.clientId = clientId;%0A%09%7D%0A%0A%09public String getTagId() %7B%0A%09%09return tagId;%0A%09%7D%0A%0A%09public void setTagId(String tagId) %7B%0A%09%09this.tagId = tagId;%0A%09%7D%0A%0A%09public String getValue() %7B%0A%09%09return value;%0A%09%7D%0A%0A%09public void setValue(String value) %7B%0A%09%09this.value = value;%0A%09%7D%0A%0A%7D%0A

Create ClientTag class.