Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix formatting in files, remove empty lines #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/CountryData.Standard/Country.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ public class Country
public string CountryFlag { get; set; }
public List<Currency> Currency { get; set; }
public List<Regions> Regions { get; set; }

}
}
13 changes: 0 additions & 13 deletions src/CountryData.Standard/CountryHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,11 @@ public CountryHelper()
}
}


/// <summary>
/// Read
/// </summary>
/// <param name="path"></param>
/// <returns></returns>

private string GetJsonData(string path)
{
string json = "";
Expand All @@ -52,7 +50,6 @@ public virtual IEnumerable<Country> GetCountryData()
return _Countries;
}


/// <summary>
/// Returns a single Country Data by ShortCode
/// </summary>
Expand All @@ -73,7 +70,6 @@ public string GetCountryEmojiFlag(string shortCode)
return string.Concat(shortCode.ToUpper().Select(x => char.ConvertFromUtf32(x + 0x1F1E6 - 'A')));
}


/// <summary>
/// Selects Regions in a Particular Country
/// </summary>
Expand All @@ -92,9 +88,6 @@ public List<Regions> GetRegionByCountryCode(string ShortCode)
/// <returns>IEnumerable<string> countries</returns>
public IEnumerable<string> GetCountries() => _Countries.Select(c => c.CountryName);




/// <summary>
/// Returns a single Country's Phone Code by ShortCode
/// </summary>
Expand All @@ -106,8 +99,6 @@ public string GetPhoneCodeByCountryShortCode(string shortCode)
return country?.PhoneCode;
}



/// <summary>
/// Returns a single Country Data by PhoneCode
/// </summary>
Expand All @@ -119,7 +110,6 @@ public IEnumerable<Country> GetCountryByPhoneCode(string phoneCode)
return Country;
}


/// <summary>
/// Retrieves all currency codes for a given country identified by its short code.
/// </summary>
Expand All @@ -132,7 +122,6 @@ public IEnumerable<Currency> GetCurrencyCodesByCountryCode(string shortCode)
.ToList();
}


/// <summary>
/// Retrieves a list of countries that use a specific currency code.
/// </summary>
Expand All @@ -148,7 +137,5 @@ public IEnumerable<Country> GetCountryByCurrencyCode(string currencyCode)

return _Countries.Where(c => c.Currency != null && c.Currency.Exists(currency => currency.Code == currencyCode));
}


}
}
5 changes: 2 additions & 3 deletions src/CountryData.Standard/Currency.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
namespace CountryData.Standard
{
public class Currency
public class Currency
{
public string Code { get; set; }
public string Code { get; set; }
public string Name { get; set; }

}
}
10 changes: 3 additions & 7 deletions src/CountryData.Standard/Regions.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
using System;

namespace CountryData.Standard
namespace CountryData.Standard
{
public class Regions
{
public String Name { get; set; }
public String ShortCode { get; set; }


public string Name { get; set; }
public string ShortCode { get; set; }
}
}