{"id":5859,"date":"2014-05-20T14:56:23","date_gmt":"2014-05-19T20:56:23","guid":{"rendered":"http:\/\/www.moonmile.net\/blog\/?p=5859"},"modified":"2014-05-20T17:40:25","modified_gmt":"2014-05-20T08:40:25","slug":"xamarin-iosandroid-%e3%81%a7%e3%80%81%e6%96%87%e5%ad%97%e5%88%97%e3%81%a8%e7%94%bb%e5%83%8f%e3%82%92pcl%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e5%85%b1%e6%9c%89%e3%81%95%e3%81%9b%e3%82%8b%e6%96%b9","status":"publish","type":"post","link":"http:\/\/www.moonmile.net\/blog\/archives\/5859","title":{"rendered":"Xamarin.iOS\/Android \u3067\u3001\u6587\u5b57\u5217\u3068\u753b\u50cf\u3092PCL\u3092\u4f7f\u3063\u3066\u5171\u6709\u3055\u305b\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>Xamarin.iOS\/Android\u30a2\u30d7\u30ea\u3067\u3001\u30d0\u30f3\u30c9\u30eb\u30ea\u30bd\u30fc\u30b9\u51e6\u7406\u3092\u5b8c\u5168\u5171\u901a\u5316\u3067\u304d\u305d\u3046\u306a\u4ed5\u69d8 &#8211; Qiita<br \/>\n<a href=\"http:\/\/qiita.com\/kochizufan\/items\/69d69f37cf991d452226#comment-172bac67ec6257dc81c2\">http:\/\/qiita.com\/kochizufan\/items\/69d69f37cf991d452226#comment-172bac67ec6257dc81c2<\/a><br \/>\nEmbedded Resource | Xamarin<br \/>\n<a href=\"http:\/\/docs.xamarin.com\/content\/EmbeddedResources\/\">http:\/\/docs.xamarin.com\/content\/EmbeddedResources\/<\/a><\/p>\n<p>\u591a\u5206\u3001PCL \u3092\u4f7f\u3046\u3068\u5171\u901a\u3067\u304d\u308b\u3060\u308d\u3046\u306a\u3041\u3001\u3068\u306f\u601d\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u3053\u308c\u3068\u3044\u3063\u3066\u3088\u3044\u65b9\u6cd5\u304c\u601d\u3044\u3064\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u3059\u3002iOS\/Android \u305d\u308c\u305e\u308c\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u5165\u308c\u308b\u3057\u304b\u306a\u3044\u304b\uff08\u30b3\u30d4\u30fc\u3042\u308b\u3044\u306f\u5171\u6709\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\uff09\u3068\u306f\u8003\u3048\u3066\u3044\u305f\u3082\u306e\u306e\u3002\u306a\u308b\u307b\u3069\u3001PCL \u306e\u30a2\u30bb\u30f3\u30d6\u30ea\u304b\u3089\u76f4\u63a5\u30ea\u30bd\u30fc\u30b9\u3092\u8aad\u307f\u3060\u3059\u6280\u304c\u3042\u308a\u307e\u3057\u305f\u306d\u3002<\/p>\n<p><a href=\"https:\/\/github.com\/xamarin\/mobile-samples\/blob\/master\/EmbeddedResources\/SharedLib\/ResourceLoader.cs\">https:\/\/github.com\/xamarin\/mobile-samples\/blob\/master\/EmbeddedResources\/SharedLib\/ResourceLoader.cs<\/a><\/p>\n<p>\u306e\u30bd\u30fc\u30b9\u3092\u3056\u3063\u3066\u3068\u898b\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001iOS\/Android \u5074\u3067 GetEmbeddedResourceStream \u30e1\u30bd\u30c3\u30c9\u3092\u547c\u3073\u51fa\u3055\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u304c\u96e3\u70b9\u3067\u3059\u3002\u3068\u8a00\u3044\u307e\u3059\u304b\u3001PCL \u306e .NET \u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u306f\u3001Assembly \u30af\u30e9\u30b9\u306e static \u30e1\u30bd\u30c3\u30c9\u304c\u975e\u5e38\u306b\u5236\u9650\u3055\u308c\u3066\u3044\u3066\u3001\u306a\u3093\u3068\u3082\u3057\u3088\u3046\u304c\u306a\u3044\u306e\u3067\u3059\u3002\u3068\u601d\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001typeof(ResourceLoader).GetTypeInfo().Assembly \u3068\u3044\u3046\u6280\u3067\u3001\u901a\u5e38\u306e Assembly \u3092\u53d6\u308c\u308b\u6280\u3092\u77e5\u308a\u307e\u3057\u305f\u3002<br \/>\n\u3044\u3084\u3044\u3084\u3001\u3088\u304f\u3088\u304f\u30ea\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb Resources.Designer.cs \u3092\u8997\u3044\u3066\u307f\u308c\u3070\u3001<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\nglobal::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager(&quot;XamarinPortableRes.Lib.Properties.Resources&quot;, typeof(Resources).GetTypeInfo().Assembly);\r\n<\/pre>\n<p>\u306a\u308b\u66f8\u304d\u65b9\u304c\u3055\u308c\u3066\u3044\u3066\u3001\u306a\u30fc\u3093\u3060\u3002\u666e\u901a\u306b\u4f7f\u3048\u308b\u65b9\u6cd5\u3058\u3083\u306a\u3044\u3067\u3059\u304b\u3002<\/p>\n<p>\u25a0\u6587\u5b57\u5217\u30ea\u30bd\u30fc\u30b9\u3092\u8ffd\u52a0\u3059\u308b<\/p>\n<p>Embedded Resource \u306e\u4f8b\u3067\u306f\u3001\u6587\u5b57\u5217\u30ea\u30bd\u30fc\u30b9\u3092\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u8aad\u307f\u8fbc\u3093\u3067\u3044\u307e\u3059\u304c\u3001\u3053\u308c\u306f\u666e\u901a\u306e\u30ea\u30bd\u30fc\u30b9\u306b\u3057\u305f\u3044\u3067\u3059\u3088\u306d\u3002\u666e\u901a\u306b\u300c\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u300d\u2192\u300c\u30ea\u30bd\u30fc\u30b9\u300d\u3067\u6587\u5b57\u5217\u3092\u8ffd\u52a0\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/05\/wpid-dworkblogimage20140520_05org.jpg\"><img decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/05\/wpid-dworkblogimage20140520_05thum.jpg\" border=\"0\" \/><\/a><\/p>\n<p>\u307e\u3060\u8a66\u3057\u3066\u306f\u3044\u307e\u305b\u3093\u304c\u3001\u56fd\u969b\u5316\u306b\u3088\u308b\u8a00\u8a9e\u5207\u308a\u66ff\u3048\u3082\u3053\u308c\u3067\u3084\u308b\u3068\u697d\u304b\u3068\u3002<\/p>\n<p>\u25a0\u6587\u5b57\u5217\u30ea\u30bd\u30fc\u30b9\u3092\u4f7f\u3046<\/p>\n<p>\u4f7f\u3046\u5074\u3082\u7c21\u5358\u3067\u3059\u3002string \u578b\u3067\u8fd4\u3057\u3066\u304f\u308c\u308b\u306e\u3067\u3001\u305d\u306e\u307e\u307e Text \u30d7\u30ed\u30d1\u30c6\u30a3\u306a\u3069\u306b\u8a2d\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Android \u306e\u5834\u5408<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\nFindViewById(Resource.Id.textView1).Text =\r\n    XamarinPortableRes.Lib.Properties.Resources.Message1;\r\n<\/pre>\n<p>iOS \u306e\u5834\u5408<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\nthis.text1.Text = XamarinPortableRes.Lib.Properties.Resources.Message1;\r\n<\/pre>\n<p>\u25a0\u753b\u50cf\u30ea\u30bd\u30fc\u30b9\u3092\u8ffd\u52a0\u3059\u308b<\/p>\n<p>PCL \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30ea\u30bd\u30fc\u30b9\u8ffd\u52a0\u306f\u300c\u6587\u5b57\u5217\u300d\u306e\u307f\u306b\u5236\u9650\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u5236\u9650\u3055\u308c\u3066\u3044\u308b\u7406\u7531\u306f\u308f\u304b\u3089\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u7121\u7406\u3084\u308a\u7a81\u3063\u8fbc\u3093\u3067\u3082 *.resx \u30d5\u30a1\u30a4\u30eb\u304b\u3089 *.desinger.cs \u306b\u5909\u63db\u3067\u30c0\u30e1\u306b\u306a\u308b\u306e\u3067\u3001\u305d\u306e\u307e\u307e\u3067\u306f\u4f7f\u3044\u52dd\u624b\u304c\u60aa\u3044\u3067\u3059\u3002<br \/>\n\u306a\u306e\u3067\u3001Resources \u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u3063\u3066\u3001\u753b\u50cf\u30d5\u30a1\u30a4\u30eb\uff08png\u30d5\u30a1\u30a4\u30eb\u306a\u3069\uff09\u3092\u5165\u308c\u307e\u3059\u3002\u30d7\u30ed\u30d1\u30c6\u30a3\u30a6\u30a3\u30f3\u30c9\u30a6\u3067\u30d3\u30eb\u30c9\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u300c\u57cb\u3081\u8fbc\u307e\u308c\u305f\u30ea\u30bd\u30fc\u30b9\u300d\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u3053\u3046\u3059\u308b\u3068\u3001\u5148\u306e\u300c\u30d0\u30f3\u30c9\u30eb\u30ea\u30bd\u30fc\u30b9\u51e6\u7406\u3092\u5b8c\u5168\u5171\u901a\u5316\uff5e\u300d\u306b\u66f8\u3044\u3066\u3042\u308b\u3088\u3046\u306b\u300cXamarinPortableRes.Lib.Resources.MarkBlue.png\u300d\u306e\u3088\u3046\u306b\u3001\u30c9\u30c3\u30c8\u3064\u306a\u304c\u308a\u3067\u30ea\u30bd\u30fc\u30b9\u304c\u53d6\u308c\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/05\/wpid-dworkblogimage20140520_06org.jpg\"><img decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/05\/wpid-dworkblogimage20140520_06thum.jpg\" border=\"0\" \/><\/a><\/p>\n<p>\u3053\u306e\u30ea\u30bd\u30fc\u30b9\u540d\u3092\u305d\u306e\u307e\u307e\u4f7f\u3063\u3066\u3082\u3044\u3044\u306e\u3067\u3059\u304c\u3001\u6587\u5b57\u5217\u6307\u5b9a\u3092\u9593\u9055\u3048\u308b\u3068\u5b9f\u884c\u30a8\u30e9\u30fc\u306b\u306a\u308b\u3057\u3001\u3069\u3046\u305b\u306a\u3089\u3070\u30a4\u30f3\u30c6\u30ea\u30bb\u30f3\u30b9\u304c\u52b9\u304f\u3088\u3046\u306b\u3057\u305f\u3044\u306e\u3067\u3001\u5c11\u3057\u3060\u3051\u5de5\u592b\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u3093\u306a\u98a8\u306b\u3001\u30ea\u30bd\u30fc\u30b9\u3092\u53d6\u308a\u51fa\u3059\u305f\u3081\u306e ResourceLoader \u30af\u30e9\u30b9\u3092\u4f5c\u308a\u307e\u3059\u3002ResourceManager \u307f\u305f\u3044\u306a\u3082\u306e\u3067\u3059\u3002\u30ea\u30bd\u30fc\u30b9\u81ea\u4f53\u306f\uff11\u56de\u3057\u304b\u8aad\u307f\u8fbc\u307e\u306a\u3044\u306e\u3067\u3001static \u3067\u5341\u5206\u3067\u3059\u3002\u540d\u524d\u304b\u3089\u691c\u7d22\u3059\u308b\u306e\u306f Embedded Resource \u306e\u501f\u7528\u3067\u3059\u304c\u3001\u521d\u56de\u306e\u307f GetManifestResourceNames \u30e1\u30bd\u30c3\u30c9\u3067\u30ea\u30bd\u30fc\u30b9\u540d\u306e\u4e00\u89a7\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\npublic static class ResourceLoader\r\n{\r\n    static internal string&#x5B;] Names { get; set; }\r\n    static internal Assembly Assembly { get; set; }\r\n\r\n    public static System.IO.Stream GetObject(string resourceName)\r\n    {\r\n        if (ResourceLoader.Assembly == null)\r\n        {\r\n            ResourceLoader.Assembly = typeof(ResourceLoader).GetTypeInfo().Assembly;\r\n            ResourceLoader.Names = ResourceLoader.Assembly.GetManifestResourceNames();\r\n        }\r\n        try\r\n        {\r\n            string path = ResourceLoader.Names.First(x =&gt; x.EndsWith(resourceName, StringComparison.CurrentCultureIgnoreCase));\r\n            return ResourceLoader.Assembly.GetManifestResourceStream(path);\r\n        }\r\n        catch\r\n        {\r\n            return null;\r\n        }\r\n    }\r\n}\r\n<\/pre>\n<p>\u30a4\u30f3\u30c6\u30ea\u30bb\u30f3\u30b9\u304c\u52b9\u304f\u3088\u3046\u306b Resources \u30af\u30e9\u30b9\u306b\u300c\u624b\u52d5\u300d\u3067\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u4f5c\u308a\u307e\u3059\u3002\u3053\u306e\u3042\u305f\u308a\u306f T4 \u3067\u4f5c\u3063\u3066\u3082\u3044\u3044\u3057\u3001\u307e\u3042\u8272\u3005\u3002\u3053\u308c\u3067\u3001Stream \u307e\u3067\u306f\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\npublic class Resources\r\n{\r\n    public static System.IO.Stream MarkBlue\r\n    {\r\n        get { return ResourceLoader.GetObject(&quot;MarkBlue.png&quot;); }\r\n    }\r\n    public static System.IO.Stream MarkGreen\r\n    {\r\n        get { return ResourceLoader.GetObject(&quot;MarkGreen.png&quot;); }\r\n    }\r\n    public static System.IO.Stream MarkNone\r\n    {\r\n        get { return ResourceLoader.GetObject(&quot;MarkNone.png&quot;); }\r\n    }\r\n    public static System.IO.Stream MarkOrange\r\n    {\r\n        get { return ResourceLoader.GetObject(&quot;MarkOrange.png&quot;); }\r\n    }\r\n    public static System.IO.Stream MarkPurple\r\n    {\r\n        get { return ResourceLoader.GetObject(&quot;MarkPurple.png&quot;); }\r\n    }\r\n    public static System.IO.Stream MarkRed\r\n    {\r\n        get { return ResourceLoader.GetObject(&quot;MarkRed.png&quot;); }\r\n    }\r\n}\r\n<\/pre>\n<p>\u25a0\u753b\u50cf\u30ea\u30bd\u30fc\u30b9\u3092\u4f7f\u3046<\/p>\n<p>\u753b\u50cf\u30ea\u30bd\u30fc\u30b9\u304b\u3089\u53d6\u3063\u3066\u304f\u308b\u3068\u3001System.IO.Stream \u3092\u53d6\u5f97\u3067\u304d\u307e\u3059\u304c\u3001\u305d\u306e\u307e\u307e\u3060\u3068\u6271\u3044\u306b\u304f\u3044\u306e\u3067 System.Drawing.Bitmap \u306b\u3057\u305f\u3044\u3068\u3053\u308d\u306a\u306e\u3067\u3059\u304c\u3001iOS\/Android \u3068\u305d\u308c\u305e\u308c\u7570\u306a\u308b\uff08UIImage, Android.Graphics.Bitmap\uff09\u306e\u3067\u3001\u30d8\u30eb\u30d1\u30fc\u30e1\u30bd\u30c3\u30c9\u3092\u4f5c\u3063\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>Android \u306e\u5834\u5408\u306f\u3001Stream \u304b\u3089 Bitmap \u3092\u8fd4\u3059\u307e\u3067\u3002<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\nglobal::Android.Graphics.Bitmap ToBitmap(System.IO.Stream st)\r\n{\r\n    using (var mem = new System.IO.MemoryStream())\r\n    {\r\n        st.CopyTo(mem);\r\n        st.Close();\r\n        var data = mem.ToArray();\r\n        var bmp = global::Android.Graphics.BitmapFactory.DecodeByteArray(data, 0, data.Length);\r\n        return bmp;\r\n    }\r\n}\r\n<\/pre>\n<p>\u3053\u3093\u306a\u98a8\u306b\u753b\u50cf\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\nthis.imageBlue = FindViewById(Resource.Id.imageView1);\r\nimageBlue.SetImageBitmap(ToBitmap(XamarinPortableRes.Lib.Resources.MarkBlue));\r\n<\/pre>\n<p>iOS \u306e\u5834\u5408\u306f\u3001UIImage \u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\nUIImage ToBitmap(System.IO.Stream st)\r\n{\r\n    var data = NSData.FromStream( st );\r\n    st.Close();\r\n    var bmp = UIImage.LoadFromData(data);\r\n    return bmp;\r\n}\r\n<\/pre>\n<p>\u305d\u3057\u3066\u3001\u8a2d\u5b9a<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\nthis.imageBlue.Image = ToBitmap(XamarinPortableRes.Lib.Resources.MarkBlue);\r\n<\/pre>\n<p>\u672c\u6765\u306f ToBitmap \u307e\u3067\u5171\u901a\u5316\u3057\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u304c\u3001\u305d\u308c\u305e\u308c\u753b\u50cf\u306e\u6271\u3044\u304c\u7570\u306a\u308b\u306e\u3067\u3001\u3053\u3053\u3050\u3089\u3044\u307e\u3067\u3002\u66f4\u306b Windows Store, Windows Phone \u3092\u8ffd\u52a0\u3059\u308b\u3068\u3001\u3088\u308a\u6c4e\u7528\u7684\u306b\u306a\u308b\u306f\u305a\u3067\u3059\u304c\u3001\u3053\u308c\u306f\u3042\u3068\u304b\u3089\u3002<\/p>\n<p># github \u3067\u3001ToBitmap \u3092 Stream \u30af\u30e9\u30b9\u306e\u62e1\u5f35\u30e1\u30bd\u30c3\u30c9\u306b\u3059\u308b\u65b9\u6cd5\u306b\u5909\u3048\u305f\u306e\u3067\u3001\u8aac\u660e\u3082\u5f8c\u3067\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<p>\u25a0\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9<\/p>\n<p><a href=\"https:\/\/github.com\/moonmile\/XamarinPortableRes\">https:\/\/github.com\/moonmile\/XamarinPortableRes<\/a><\/p>\n<p>\u25a0\u5b9f\u884c\u7d50\u679c<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/05\/wpid-dworkblogimage20140520_03org.jpg\"><img decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/05\/wpid-dworkblogimage20140520_03thum.jpg\" border=\"0\" \/><\/a><br \/>\n<a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/05\/wpid-dworkblogimage20140520_04org.jpg\"><img decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/05\/wpid-dworkblogimage20140520_04thum.jpg\" border=\"0\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Xamarin.iOS\/Android\u30a2\u30d7\u30ea\u3067\u3001\u30d0\u30f3\u30c9\u30eb\u30ea\u30bd\u30fc\u30b9\u51e6\u7406\u3092\u5b8c\u5168\u5171\u901a\u5316\u3067\u304d\u305d\u3046\u306a\u4ed5\u69d8 &#8211; Qiita http:\/\/qiita.com\/kochizufan\/items\/69d69f37cf991d &hellip; <a href=\"http:\/\/www.moonmile.net\/blog\/archives\/5859\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[64,23,62,65],"tags":[],"class_list":["post-5859","post","type-post","status-publish","format-standard","hentry","category-android","category-csharp","category-xamarin","category-ios"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/5859","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/comments?post=5859"}],"version-history":[{"count":4,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/5859\/revisions"}],"predecessor-version":[{"id":5862,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/5859\/revisions\/5862"}],"wp:attachment":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/media?parent=5859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/categories?post=5859"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/tags?post=5859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}