This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 2014-07-08 12:20:42.417 Snippets[19144:1303] -[QBChat xmppStream:didSendIQ:] -> IQ: <iq type="get" to="muc.chat.quickblox.com" id="5610027"><query xmlns="http://jabber.org/protocol/disco#items"></query></iq> | |
| 2014-07-08 12:20:46.384 Snippets[19144:1303] -[QBChat xmppStream:didReceiveIQ:] -> <iq xmlns="jabber:client" from="muc.chat.quickblox.com" to="1273387-11477@chat.quickblox.com/89DD494C-5D34-4590-9F9A-A08E817E0056" type="result" id="5610027"><query xmlns="http://jabber.org/protocol/disco#items"><item name="prod_2rrvthnzxz_2rrvtho2gh" jid="11477_prod_2rrvthnzxz_2rrvtho2gh@muc.chat.quickblox.com"></item><item name="prod_2rrvthnz5c_2rrvtho2b5" jid="11477_prod_2rrvthnz5c_2rrvtho2b5@muc.chat.quickblox.com"></item><item name="prod_2rrvthnzn2_2rrvtho11s" jid="11477_prod_2rrvthnzn2_2rrvtho11s@muc.chat.quickblox.com"></item><item name="prod_2rrvtho1xq_2rrvtho24l" jid="11477_prod_2rrvtho1xq_2rrvtho24l@muc.chat.quickblox.com"></item><item name="prod_2rrvtho2mv_2rrvtho47d" jid="11477_prod_2rrvtho2mv_2rrvtho47d@muc.cha |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var myInstance:ChatService? | |
| class ChatService { | |
| class func instance() -> ChatService{ | |
| if !myInstance { | |
| myInstance = ChatService() | |
| println("init") | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'xmpp4r/client' | |
| require 'xmpp4r/muc' | |
| puts "1" | |
| client = Jabber::Client.new(Jabber::JID::new("2960-6@chatstage.quickblox.com")) | |
| client.connect | |
| puts "2" | |
| client.auth("emmaemma") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <iq xmlns="jabber:client" id="561004347" from="92_test_room_test@muc.chat.quickblox.com" to="298-92@chat.quickblox.com" type="result"><query xmlns="http://jabber.org/protocol/disco#info"><identity name="Test Room Test" category="conference" type="text"></identity><feature var="http://jabber.org/protocol/muc"></feature><feature var="muc_semianonymous"></feature><feature var="muc_unmoderated"></feature><feature var="muc_open"></feature><feature var="muc_persistent"></feature><feature var="muc_public"></feature><feature var="muc_unsecured"></feature></query></iq> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <iq type="get" to="92_test_room_test@muc.chat.quickblox.com" id="561004347" from="298-92@chat.quickblox.com"><query xmlns="http://jabber.org/protocol/disco#info"></query></iq> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <iq id="inroom-cr92_test_room_test@muc.chat.quickblox.com" to="92_test_room_test@muc.chat.quickblox.com" type="set"><query xmlns="http://jabber.org/protocol/muc#owner"><x xmlns="jabber:x:data" type="submit"><field var="muc#roomconfig_roomname"><value>Test Room Test</value></field><field var="muc#roomconfig_persistentroom"><value>1</value></field></x></query></iq |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| QBUser participant = new QBUser(2); | |
| QBPrivateChatManager manager = QBChatService.getInstance().getPrivateChatManager(); | |
| manager.addChatListener(new QBChatManagerListener() { | |
| @Override | |
| public void chatCreated(QBChat chat) { | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <iq type="result" id="561002161" xmlns="jabber:client" to="605901-4679@chat.quickblox.com" from="muc.chat.quickblox.com"> | |
| <query xmlns="http://jabber.org/protocol/disco#items"> | |
| <item jid="4679_testflight_time@muc.chat.quickblox.com" name="TestFlight time"/> | |
| <item jid="4679_does_this_work?@muc.chat.quickblox.com" name="Does this work?"/> | |
| <item jid="4679_not_literlly,_it_delted@muc.chat.quickblox.com" name="Not literlly, it delted"/> | |
| <item jid="4679_chattin_like_a_mofo@muc.chat.quickblox.com" name="Chattin like a mofo"/> | |
| <item jid="4679_pool@muc.chat.quickblox.com" name="Pool"/> | |
| <item jid="4679_jsnsnndjdnd@muc.chat.quickblox.com" name="Jsnsnndjdnd"/> | |
| <item jid="4679_testing_a_yapp@muc.chat.quickblox.com" name="Testing a yapp"/> | |
| <item jid="4679_rife_high@muc.chat.quickblox.com" name="Rife high"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void) captureStillImage | |
| { | |
| AVCaptureConnection *stillImageConnection = [AVCamUtilities connectionWithMediaType:AVMediaTypeVideo fromConnections:[[self stillImageOutput] connections]]; | |
| if ([stillImageConnection isVideoOrientationSupported]) | |
| [stillImageConnection setVideoOrientation:orientation]; | |
| [[self stillImageOutput] captureStillImageAsynchronouslyFromConnection:stillImageConnection | |
| completionHandler:^(CMSampleBufferRef imageDataSampleBuffer, NSError *error) { | |
| ALAssetsLibraryWriteImageCompletionBlock completionBlock = ^(NSURL *assetURL, NSError *error) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def update_record | |
| json_data = JSON.parse(params["record"]["json_body"]) | |
| data = CustomData.where(:id => params["record"]["id"], :application_id => @current_app.id).first | |
| authorize! :update, data | |
| data.update_attributes typify_hash(json_data) | |
| if json_data["user_id"] != data.user_id | |
| begin | |
| user = User.find(json_data["user_id"].to_i) | |
| data.user_id = user.id if (user.account_id == @current_user.account_id) |