internal static string CreateQuery(this Impression impression, GfycatAnalyticsClient client) { return(Utils.CreateQueryString( ("app_id", client.Config.AppId), ("ver", client.Config.AppVersion), ("utc", client.CurrentUserTrackingCookie), ("stc", client.Config.SessionId), ("gfyid", impression.Gfycat.Id), ("context", impression.Context == ImpressionContext.None ? null : impression.Context.ToString()), ("keyword", impression.Keyword), ("flow", impression.Flow == ImpressionFlow.None ? null : impression.Flow.ToString()), ("viewtag", impression.ViewTag))); }
internal static string CreateQuery(this IEnumerable <Impression> impressions, GfycatAnalyticsClient client) { Impression impression = impressions.FirstOrDefault(); IEnumerable <(string, object)> queryStringEnumerable = new (string, object)[] {