namespace Plugins.Countly.Services.Impls.Actual { public class OptionalParametersCountlyService : IOptionalParametersCountlyService { public string CountryCode { get; private set; } public string City { get; private set; } public string Location { get; private set; } public string IPAddress { get; private set; } /// /// Sets Country Code to be used for future requests. Takes ISO Country code as input parameter /// /// public void SetCountryCode(string country_code) { CountryCode = country_code; } /// /// Sets City to be used for future requests. /// /// public void SetCity(string city) { City = city; } /// /// Sets Location to be used for future requests. /// /// /// public void SetLocation(double latitude, double longitude) { Location = latitude + "," + longitude; } /// /// Sets IP address to be used for future requests. /// /// public void SetIPAddress(string ip_address) { IPAddress = ip_address; } /// /// Disabled the location tracking on the Countly server /// public void DisableLocation() { Location = string.Empty; } } }