Beispiel #1
0
 public ktRequestObject(ktString obj, ktString memb, ktTalkFormat form = ktTalkFormat._DEFUALT)
 {
     Object = obj;
     Member = memb;
     Arguments = null;
     Format = form;
 }
Beispiel #2
0
 public ktRequestObject(ktString obj, ktString memb, Dictionary<ktString, ktString> args, ktTalkFormat form = ktTalkFormat._DEFUALT)
 {
     Object = obj;
     Member = memb;
     Arguments = args;
     Format = form;
 }
Beispiel #3
0
 public static ktString FormatToString(ktTalkFormat format)
 {
     switch (format)
     {
         case ktTalkFormat.JSON:
             {
                 return "json";
             }
         case ktTalkFormat.JSONP:
             {
                 return "jsonp";
             }
         case ktTalkFormat.KT_XML:
             {
                 return "ktxml";
             }
         case ktTalkFormat.XML:
             {
                 return "xml";
             }
         case ktTalkFormat.XML_RPC:
             {
                 return "rpc";
             }
         case ktTalkFormat.OBJECT_PHP:
             {
                 return "php";
             }
         case ktTalkFormat.OBJEKT_KTS:
             {
                 return "kto";
             }
         case ktTalkFormat.APACHE_CONF:
             {
                 return "aconf";
             }
         case ktTalkFormat.INI:
             {
                 return "ini";
             }
         default:
             {
                 throw new ktError("Unrecognized talker format: '" + format.ToString() + "', in ktTalker::FormatToString!", ktERR.UNKNOWN);
             }
     }
 }