Exemple #1
0
 protected DictionaryResponse CommonResponse(ServerInterface.DictionaryResponse servResponse)
 {
     DictionaryResponse response = new DictionaryResponse();
     if (servResponse.ErrorCode == 0)
     {
         response.DictionaryTable = new MWRCommonTypes.DictionaryEntry[servResponse.DictionaryTable.Length];
         for (int i = 0; i < servResponse.DictionaryTable.Length; i++)
         {
             MWRCommonTypes.DictionaryEntry entry = new MWRCommonTypes.DictionaryEntry();
             entry.Active = servResponse.DictionaryTable[i].Active;
             entry.Assembly = servResponse.DictionaryTable[i].Assembly;
             entry.Config = servResponse.DictionaryTable[i].Config;
             entry.Guid = servResponse.DictionaryTable[i].Guid;
             entry.Name = servResponse.DictionaryTable[i].Name;
             entry.Type = (MWRCommonTypes.Enum.ObjectType)(int)servResponse.DictionaryTable[i].Type;
             entry.TypeOf = servResponse.DictionaryTable[i].TypeOf;
             response.DictionaryTable[i] = entry;
         }
     }
     response.ErrorCode = servResponse.ErrorCode;
     response.ErrorDescription = servResponse.ErrorDescription;
     return response;
 }
Exemple #2
0
 public ServerProxy(ServerInterface.ServerInterfaceSoapClient client)
 {
     soapClient = client;
 }