Show operation hours for selected country's support phone

Bug: 28827790
Change-Id: Idddaefa33cf1a128b70c517b1acb61a2b7bab288
This commit is contained in:
Fan Zhang
2016-06-24 15:17:09 -07:00
parent 3737fabda4
commit 2736ace057
3 changed files with 20 additions and 15 deletions

View File

@@ -52,9 +52,10 @@ public interface SupportFeatureProvider {
boolean isSupportTypeEnabled(Context context, @SupportType int type);
/**
* Whether or not a support type is in operation 24/7.
* Whether or not a support type is in operation 24/7. If country is null, use
* current country.
*/
boolean isAlwaysOperating(@SupportType int type);
boolean isAlwaysOperating(@SupportType int type, String countryCode);
/**
* Whether or not a support type is operating now.
@@ -62,16 +63,16 @@ public interface SupportFeatureProvider {
boolean isOperatingNow(@SupportType int type);
/**
* Returns localized string for operation hours.
* Returns localized string for operation hours in specified country. If country is null, use
* current country to figure out operation hours.
*/
CharSequence getOperationHours(Context context, @SupportType int type);
CharSequence getOperationHours(Context context, @SupportType int type, String countryCode);
/**
* Returns a localized string indicating estimated wait time for a support time.
*/
String getEstimatedWaitTime(Context context, @SupportType int type);
/**
* Returns a list of country codes that have phone support.
*/