类 GetTemplatesSettings

获取模板时要使用的设置。

总结

成员 说明
public void SetDelegatedUserEmail(const std::string& delegatedUserEmail) 设置委托用户。
public const std::string& GetDelegatedUserEmail() const 获取委托用户。
public void ForceRefresh(bool enabled) 可以启用模板的强制刷新,忽略以前的缓存响应。
public bool ShouldRefreshTemplates() const 可以启用模板的强制刷新,忽略以前的缓存响应。
public void EnableCaching(bool cachingAllowed) 可以禁用模板响应的缓存。 默认情况下将缓存。
public bool ShouldCacheResponse() const 可以缓存模板或不缓存模板。

成员

SetDelegatedUserEmail 函数

设置委托用户。

参数:

  • delegatedUserEmail:委托电子邮件。

当代表其他用户对用户/应用程序进行身份验证时,将指定委托用户

GetDelegatedUserEmail 函数

获取委托用户。

返回结果:委托用户。当代表其他用户对用户/应用程序进行身份验证时,将指定委托用户

ForceRefresh 函数

可以启用模板的强制刷新,忽略以前的缓存响应。

参数:

  • enabled:True 强制刷新。 如果可用,则为 False, 以使用缓存的模板。

ShouldRefreshTemplates 函数

可以启用模板的强制刷新,忽略以前的缓存响应。

返回:如果忽略缓存的模板,则返回 True。 如果可用,则为 False。

EnableCaching 函数

可以禁用模板响应的缓存。 默认情况下将缓存。

参数:

  • cachingAllowed:False 禁止模板缓存。

ShouldCacheResponse 函数

可以缓存模板或不缓存模板。

返回:True 表示缓存模板。 False 为 not。