@@ -54,6 +54,7 @@ public static Task Report(string url, int recordId, int status, int? type,
5454 return new VersionService ( a ) . ReportAsync ( url , recordId , status , type , ct ) ;
5555 }
5656
57+ // Strongly-typed overload (preferred)
5758 public static Task < VersionRespDTO > Validate ( string url , string version ,
5859 AppType appType , string appKey , PlatformType platform , string productId ,
5960 string scheme = null , string token = null , CancellationToken ct = default )
@@ -62,6 +63,12 @@ public static Task<VersionRespDTO> Validate(string url, string version,
6263 return new VersionService ( a ) . ValidateAsync ( url , version , ( int ) appType , ( int ) platform , productId , ct ) ;
6364 }
6465
66+ // Backward-compatible int overload (binary compat for existing callers)
67+ public static Task < VersionRespDTO > Validate ( string url , string version ,
68+ int appType , string appKey , int platform , string productId ,
69+ string scheme = null , string token = null , CancellationToken ct = default )
70+ => Validate ( url , version , ( AppType ) appType , appKey , ( PlatformType ) platform , productId , scheme , token , ct ) ;
71+
6572 private async Task ReportAsync ( string url , int recordId , int status , int ? type , CancellationToken t = default )
6673 {
6774 var p = new Dictionary < string , object > { [ "RecordId" ] = recordId , [ "Status" ] = status , [ "Type" ] = type } ;
0 commit comments