fr $ddlmZGddZy)) CommandTypecfeZdZdZdZedZedZedZdZ dZ dZ d Z d Z y ) Commandc.||_||_||_yN) runtime_name command_typepayload)selfrr r s wD:\a/1/s/src/ruby/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/../../../../Binaries/Python\javonet\utils\Command.py__init__zCommand.__init__s(( c|jSr)r r s r get_payloadzCommand.get_payload s ||rc:t|tj|gSr)rrValue)responsers r create_responsezCommand.create_responses|[%6%6 CCrc:t|tj|gSr)rr Reference)guidrs r create_referencezCommand.create_references|[%:%:TFCCrc8t|tj|Sr)rrArray)arrayrs r create_array_responsezCommand.create_array_responses|[%6%6>>rcg}|j|jt|dk7r|jdt |j |j |S)Nr)extendr lenpoprrr )r payload_argss r drop_first_payload_argumentz#Command.drop_first_payload_argumentsO DLL) |  !   Q t(($*;*;\JJrcd|j|gz}t|j|j|Sr)r rrr )r argumentmerged_payloads r add_arg_to_payloadzCommand.add_arg_to_payload!s- 2t(($*;*;^LLrc|+t|j|j|jSt|j|j|g|jzSr)rrr r )r current_commands r prepend_arg_to_payloadzCommand.prepend_arg_to_payload%sQ  "4,,d.?.?N N4,,d.?.?/ARUYUaUaAab brcdt|jzdzt|jzdzt|jzS)NzTarget runtime: z Command type: z Payload: )strrr r rs r to_stringzCommand.to_string+sR!C(9(9$::=NNQT   R!-.03DLL0AB Brcd|_||urd|_||j|jk7rd|_|j|jur|j|jurd|_t |j t |j k(rPd}d}|j D]*}|j |j |rd}nd}|dz },||_|jSd|_|jS)NFTr)is_equal __class__r rr r __eq__)r elementiarray_item_equal payload_items r r2zCommand.__eq__/s 7? DM ?dnn0A0AA!DM    4 4 49J9JgNbNb9b DM t|| GOO 4 4A$  $   &&wq'9:'+$',$Q   -DM}}"DM}}rN)__name__ __module__ __qualname__r r staticmethodrrrr#r'r*r-r2rr rrsi DDDD??KMc BrrN)javonet.utils.CommandTyperrr;rr r=s1??r