| 
18 | 18 | %pragma(csharp) moduleclassmodifiers="internal sealed class"  | 
19 | 19 | %feature("flatnested");  | 
20 | 20 | 
 
  | 
 | 21 | +// Change the default class modifier to internal, so that new classes are not accidentally exposed  | 
 | 22 | +%typemap(csclassmodifiers) SWIGTYPE "internal class"  | 
 | 23 | + | 
21 | 24 | %include "std_vector.i"  | 
22 | 25 | %include "stdint.i"  | 
23 | 26 | 
 
  | 
@@ -116,57 +119,12 @@ void SetConfigUpdateCallback(RemoteConfig* rc, firebase::remote_config::ConfigUp  | 
116 | 119 | %ignore firebase::remote_config::RemoteConfigError;  | 
117 | 120 | %ignore firebase::remote_config::ConfigUpdateListenerRegistration;  | 
118 | 121 | 
 
  | 
119 |  | -// Configure the ConfigInfo class  | 
120 |  | -%csmethodmodifiers fetch_time "internal";  | 
121 |  | -%rename(FetchTimeInternal) fetch_time;  | 
122 |  | -%csmethodmodifiers throttled_end_time "internal";  | 
123 |  | -%rename(ThrottledEndTimeInternal) throttled_end_time;  | 
124 |  | - | 
125 |  | -%typemap(cscode) firebase::remote_config::ConfigInfo %{  | 
126 |  | -  private System.DateTime UnixEpochUtc =  | 
127 |  | -      new System.DateTime(1970, 1, 1, 0, 0, 0, 0, System.DateTimeKind.Utc);  | 
128 |  | - | 
129 |  | -  /// @brief The time when the last fetch operation completed.  | 
130 |  | -  public System.DateTime FetchTime {  | 
131 |  | -    get {  | 
132 |  | -      return UnixEpochUtc.AddMilliseconds(FetchTimeInternal);  | 
133 |  | -    }  | 
134 |  | -  }  | 
135 |  | - | 
136 |  | -  /// @brief The time when Remote Config data refreshes will no longer  | 
137 |  | -  /// be throttled.  | 
138 |  | -  public System.DateTime ThrottledEndTime {  | 
139 |  | -    get {  | 
140 |  | -      return UnixEpochUtc.AddMilliseconds(ThrottledEndTimeInternal);  | 
141 |  | -    }  | 
142 |  | -  }  | 
143 |  | -%}  | 
144 |  | - | 
145 |  | -%immutable firebase::remote_config::ConfigInfo::last_fetch_status;  | 
146 |  | -%immutable firebase::remote_config::ConfigInfo::last_fetch_failure_reason;  | 
147 |  | - | 
148 |  | -// These are here instead of the header due to b/35780150  | 
149 |  | -%csmethodmodifiers firebase::remote_config::ConfigInfo::last_fetch_status "  | 
150 |  | -  /// @brief The status of the last fetch request.  | 
151 |  | -  public";  | 
152 |  | -%csmethodmodifiers firebase::remote_config::ConfigInfo::last_fetch_failure_reason "  | 
153 |  | -  /// @brief The reason the most recent fetch failed.  | 
154 |  | -  public";  | 
155 |  | - | 
156 |  | -// Make snake_case properties into CamelCase.  | 
157 |  | -// ConfigInfo  | 
158 |  | -%rename(LastFetchFailureReason) last_fetch_failure_reason;  | 
159 |  | -%rename(LastFetchStatus) last_fetch_status;  | 
160 |  | - | 
161 |  | -%typemap(csclassmodifiers) firebase::remote_config::ConfigInfo  | 
162 |  | -  "public sealed class";  | 
163 |  | - | 
164 |  | -%SWIG_FUTURE(Future_ConfigInfo, ConfigInfo, internal, firebase::remote_config::ConfigInfo, FirebaseException) // Future<ConfigInfo>  | 
165 |  | - | 
 | 122 | +// Rename the generated classes to *Internal  | 
 | 123 | +%rename (ConfigInfoInternal) firebase::remote_config::ConfigInfo;  | 
 | 124 | +%SWIG_FUTURE(Future_ConfigInfo, ConfigInfoInternal, internal,  | 
 | 125 | +             firebase::remote_config::ConfigInfo, FirebaseException) // Future<ConfigInfoInternal>  | 
166 | 126 | %rename (FirebaseRemoteConfigInternal) firebase::remote_config::RemoteConfig;  | 
167 |  | - | 
168 | 127 | %rename (ConfigSettingsInternal) firebase::remote_config::ConfigSettings;  | 
169 |  | - | 
170 | 128 | %rename (ConfigUpdateInternal) firebase::remote_config::ConfigUpdate;  | 
171 | 129 | 
 
  | 
172 | 130 | // Configure properties for get / set methods on the FirebaseRemoteConfigInternal class.  | 
 | 
0 commit comments