{"id":198814,"date":"2013-11-13T15:30:02","date_gmt":"2013-11-13T11:30:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=198814"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=198814","title":{"rendered":"<span class=\"post_title\">Multipeer connectivity framework \u0432 iOS7<\/span>"},"content":{"rendered":"<div class=\"content html_format\">       <a href=\"https:\/\/developer.apple.com\/library\/ios\/documentation\/MultipeerConnectivity\/Reference\/MultipeerConnectivityFramework\/Introduction\/Introduction.html\">Multipeer Connectivity Framework<\/a> \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f, \u043f\u043e\u0442\u043e\u043a\u0438 \u0438 \u0444\u0430\u0439\u043b\u044b \u043c\u0435\u0436\u0434\u0443 iOS \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438, \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u043c\u0438\u0441\u044f \u0440\u044f\u0434\u043e\u043c. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f WiFi \u0441\u0435\u0442\u0438, \u043f\u0440\u044f\u043c\u043e\u0435 WiFI \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0438 Bluetooth. \u0422\u043e \u0435\u0441\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f.<\/p>\n<p>  \u0424\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c \u0438\u0437 \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0443 \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u0430 \u21162 \u0432\u043a\u043b\u044e\u0447\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e WiFi, \u0430 \u0443 \u21163 \u0442\u043e\u043b\u044c\u043a\u043e Bluetooth. \u0415\u0441\u043b\u0438 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u044d\u0442\u0438\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0431\u0443\u0434\u0435\u0442 \u0442\u0440\u0435\u0442\u0438\u0439 \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d \u0441 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u043c Wifi \u0438 Bluetooth, \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u044b \u21162 \u0438 \u21163 \u0441\u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e \u043e\u0431\u043c\u0435\u043d\u0438\u0432\u0430\u0442\u044c\u0441\u044f <br \/>  \u0434\u0430\u043d\u043d\u044b\u043c\u0438.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/775\/f47\/f19\/775f47f19e6a12caedfb119b9587224a.png\"\/><br \/>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u041a\u043b\u0430\u0441\u0441 <a href=\"https:\/\/developer.apple.com\/library\/ios\/documentation\/MultipeerConnectivity\/Reference\/MCAdvertiserAssistant_class\/Reference\/Reference.html#\/\/apple_ref\/occ\/cl\/MCAdvertiserAssistant\">MCAdvertiserAssistant<\/a> \u0434\u0435\u043b\u0430\u0435\u0442 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u043c, \u0430 \u043a\u043b\u0430\u0441\u0441 <a href=\"https:\/\/developer.apple.com\/library\/ios\/documentation\/MultipeerConnectivity\/Reference\/MCBrowserViewController_class\/Reference\/Reference.html#\/\/apple_ref\/occ\/cl\/MCBrowserViewController\">MCBrowserViewController<\/a> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438\u0441\u043a\u0430\u0442\u044c. \u042d\u0442\u0438 \u043a\u043b\u0430\u0441\u0441\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0442 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u043e\u0438\u0441\u043a\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0435\u0441\u0441\u0438\u0438, \u0435\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u043a\u043b\u0430\u0441\u0441\u044b MCNearbyServiceAdvertiser \u0438 MCNearbyServiceBrowser.<\/p>\n<p>  \u041f\u0435\u0440\u0435\u0434\u0430\u0434\u0438\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438. \u041f\u0435\u0440\u0432\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043a\u0430\u0442\u044c.  <\/p>\n<pre><code class=\"cs\">void StartMultipeerBrowser () {   peer = new MCPeerID (&quot;Monkey&quot;);   session = new MCSession (peer);   session.Delegate = sessionDelegate;   browser = new MCBrowserViewController (serviceType, session);   browser.Delegate = browserDelegate;   browser.ModalPresentationStyle = UIModalPresentationStyle.FormSheet;   PresentViewController (browser, true, null); } <\/code><\/pre>\n<p>  MVBrowserViewController \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442 \u043e\u043a\u043d\u043e \u0441 \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u043c\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438. \u041f\u043e \u0442\u0430\u043f\u0443 \u043d\u0430 \u043e\u0434\u043d\u043e \u0438\u0437 \u043d\u0438\u0445, \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u043e\u0431\u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u043c\u0438.<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/577\/fb8\/f49\/577fb8f491f12b30e589690e513b641e.png\"\/><\/p>\n<p>  \u0414\u0435\u043b\u0435\u0433\u0430\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 MCSession \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u044f \u043e \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0438, \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0438 \u043e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<pre><code class=\"cs\">class MySessionDelegate : MCSessionDelegate {   public override void DidChangeState (MCSession session, MCPeerID peerID, MCSessionState state)   {     switch (state) {     case MCSessionState.Connected:       Console.WriteLine (&quot;Connected: {0}&quot;, peerID.DisplayName);       break;     case MCSessionState.Connecting:       Console.WriteLine (&quot;Connecting: {0}&quot;, peerID.DisplayName);       break;     case MCSessionState.NotConnected:       Console.WriteLine (&quot;Not Connected: {0}&quot;, peerID.DisplayName);       break;     }   }   public override void DidReceiveData (MCSession session, NSData data, MCPeerID peerID)   {     InvokeOnMainThread (() =&gt; {       var alert = new UIAlertView (&quot;&quot;, data.ToString (), null, &quot;OK&quot;);       alert.Show ();     });   }   ... } <\/code><\/pre>\n<p>  \u041a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u0437\u0430\u043a\u0440\u043e\u0435\u0442 \u043e\u043a\u043d\u043e \u043f\u043e\u0438\u0441\u043a\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0434\u0435\u043b\u0435\u0433\u0430\u0442 \u043a\u043b\u0430\u0441\u0441\u0430 MCBrowserViewController \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u0435. \u041e\u043a\u043d\u043e \u043f\u043e\u0438\u0441\u043a\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e.  <\/p>\n<pre><code class=\"cs\">class MyBrowserDelegate : MCBrowserViewControllerDelegate {   public override void DidFinish (MCBrowserViewController browserViewController)   {     InvokeOnMainThread (() =&gt; {       browserViewController.DismissViewController (true, null);     });   }   public override void WasCancelled (MCBrowserViewController browserViewController)   {     InvokeOnMainThread (() =&gt; {       browserViewController.DismissViewController (true, null);     });   } } <\/code><\/pre>\n<p>  \u0412\u0442\u043e\u0440\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u043c:  <\/p>\n<pre><code class=\"cs\">void StartMultipeerAdvertiser () {   peer = new MCPeerID (&quot;Player1&quot;);   session = new MCSession (peer);   session.Delegate = sessionDelegate;   assistant = new MCAdvertiserAssistant (serviceType, dict, session);   assistant.Start (); } <\/code><\/pre>\n<p>  \u041a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0435\u043d\u0438\u0435 \u043d\u0430 \u043e\u0431\u043c\u0435\u043d \u0434\u0430\u043d\u043d\u044b\u043c\u0438 MCAdvertiserAssistant \u0441\u043f\u0440\u043e\u0441\u0438\u0442 \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<br \/>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/a50\/22b\/6a3\/a5022b6a3f6a135482e58d2ad1a1ae42.png\"\/><\/p>\n<p>  \u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u0441\u0441\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435, \u043f\u043e\u0442\u043e\u043a \u0438\u043b\u0438 \u0440\u0435\u0441\u0443\u0440\u0441. \u041f\u0440\u0438\u043c\u0435\u0440 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f  <\/p>\n<pre><code class=\"cs\">void SendMessage () {   var message = NSData.FromString (     String.Format (&quot;{0} found the monkey&quot;, peer.DisplayName));   NSError error;   session.SendData (message, session.ConnectedPeers,   MCSessionSendDataMode.Reliable, out error); } <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0440\u0435\u0441\u0443\u0440\u0441\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434 <a href=\"https:\/\/developer.apple.com\/library\/ios\/documentation\/MultipeerConnectivity\/Reference\/MCSessionClassRef\/Reference\/Reference.html#\/\/apple_ref\/occ\/instm\/MCSession\/sendResourceAtURL:withName:toPeer:withCompletionHandler:\">sendResourceAtUrl<\/a>. \u041e\u0431\u044a\u0435\u043a\u0442 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 NSUrl \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0438\u043b\u0438 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0440\u0435\u0441\u0443\u0440\u0441.<\/p>\n<p>  \u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0430\u0439\u0442\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u0442\u043e\u043a\u0430 \u043c\u0435\u0436\u0434\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043c\u0435\u0442\u043e\u0434 <a href=\"https:\/\/developer.apple.com\/library\/ios\/documentation\/MultipeerConnectivity\/Reference\/MCSessionClassRef\/Reference\/Reference.html#\/\/apple_ref\/occ\/instm\/MCSession\/startStreamWithName:toPeer:error:\">startStreamWithName<\/a>, \u043e\u043d \u0441\u043e\u0437\u0434\u0430\u0435\u0442 NSOutputStream \u0438 NSInputStream \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u043a\u043e\u043d\u0446\u0430\u0445 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f. \u041d\u0435 \u0437\u043d\u0430\u044e \u0437\u0430\u0447\u0435\u043c, \u043d\u043e \u043c\u043e\u0436\u043d\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u043e\u0442\u043e\u043a \u0430\u0443\u0434\u0438\u043e \u0441 \u043c\u0438\u043a\u0440\u043e\u0444\u043e\u043d\u0430 \u043e\u0434\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u044c \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u043c.   \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/company\/touchinstinct\/blog\/198814\/\"> http:\/\/habrahabr.ru\/company\/touchinstinct\/blog\/198814\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">       <a href=\"https:\/\/developer.apple.com\/library\/ios\/documentation\/MultipeerConnectivity\/Reference\/MultipeerConnectivityFramework\/Introduction\/Introduction.html\">Multipeer Connectivity Framework<\/a> \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f, \u043f\u043e\u0442\u043e\u043a\u0438 \u0438 \u0444\u0430\u0439\u043b\u044b \u043c\u0435\u0436\u0434\u0443 iOS \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438, \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u043c\u0438\u0441\u044f \u0440\u044f\u0434\u043e\u043c. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f WiFi \u0441\u0435\u0442\u0438, \u043f\u0440\u044f\u043c\u043e\u0435 WiFI \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0438 Bluetooth. \u0422\u043e \u0435\u0441\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f.<\/p>\n<p>  \u0424\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c \u0438\u0437 \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0443 \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u0430 \u21162 \u0432\u043a\u043b\u044e\u0447\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e WiFi, \u0430 \u0443 \u21163 \u0442\u043e\u043b\u044c\u043a\u043e Bluetooth. \u0415\u0441\u043b\u0438 \u0432 \u0440\u0430\u0434\u0438\u0443\u0441\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0441\u0442\u0438 \u044d\u0442\u0438\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0431\u0443\u0434\u0435\u0442 \u0442\u0440\u0435\u0442\u0438\u0439 \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d \u0441 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u043c Wifi \u0438 Bluetooth, \u0441\u043c\u0430\u0440\u0442\u0444\u043e\u043d\u044b \u21162 \u0438 \u21163 \u0441\u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e \u043e\u0431\u043c\u0435\u043d\u0438\u0432\u0430\u0442\u044c\u0441\u044f <br \/>  \u0434\u0430\u043d\u043d\u044b\u043c\u0438.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habr.habrastorage.org\/post_images\/775\/f47\/f19\/775f47f19e6a12caedfb119b9587224a.png\"\/>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-198814","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/198814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=198814"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/198814\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=198814"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=198814"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=198814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}