Upgrade to Pro — share decks privately, control downloads, hide ads and more …

NCMBの紹介とParse.comとの相違点について

 NCMBの紹介とParse.comとの相違点について

残り半年!Parse.comからNCMBへのmBaaS移行セミナー - http://ncmb.connpass.com/event/37190/ での発表資料です。

4cafe6a1c6287d64d7252279eeeffa94?s=128

Atsushi Nakatsugawa

August 31, 2016
Tweet

Transcript

  1. Copyright @ NIFTY Corporation All Rights χϑςΟΫϥ΢υNPCJMFCBDLFOE ΤϰΝϯδΣϦετத௡઒ಞ࢘ 1BSTFDPN͸ऴྃͯ͠΋N#BB4͸ऴ ΘΓ·ͤΜʂχϑςΟΫϥ΢υNPCJMF

    CBDLFOEͷ࣍ͷҰख
  2. Copyright @ NIFTY Corporation All Rights ࣗݾ঺հ  !NPPOHJGU GCNFNPPOHJGUGBO

    த௡઒ಞ࢘ גࣜձࣾ.00/(*'5୅දऔక໾ χϑςΟΫϥ΢υNPCJMFCBDLFOE ɹɹɹɹɹɹɹɹɹɹΤϰΝϯδΣϦετ ೥݄ΑΓΦʔϓϯιʔεɾιϑτ΢ΣΞΛຖ ೔঺հ͢Δϒϩά.00/(*'5ΛӡӦɻ IUUQXXXNPPOHJGUKQ
  3. Copyright @ NIFTY Corporation All Rights χϑςΟΫϥ΢υNPCJMFCBDLOFOE ʹ͍ͭͯ  !OJGUZDMPVE@NC

    GCNFOJGUZDMPVENC χϑςΟΫϥ΢υNPCJMFCBDLFOE χϑςΟגࣜձࣾͷఏڙ͢ΔN#BB4 εϚʔτϑΥϯ8FCΞϓϦͷόοΫΤϯυʢαʔ όαΠυʣͷ࢓૊ΈΛҰׅఏڙ IUUQNCDMPVEOJGUZDPN
  4. Copyright @ NIFTY Corporation All Rights 1BSTF N#BB4 ΍ΊΔͬͯΑ

  5. Copyright @ NIFTY Corporation All Rights 5 ::::::::        ┌─────────────── ┐ ::::::::        | Parse.comがやられようだな…

       │ :::::   ┌───└───────────v───┬┘ :::::   |フフフ…奴は四天王の中でも最強 …最強?│ ┌──└────────v─┬────────┘ | このタイミングで辞めるとは │ | mBaaSの面汚しよ        │ └────v────────┘   |ミ,  /  `ヽ /!    ,.──、   |彡/二Oニニ|ノ    /三三三!,       |!   `,' \、、_,|/-ャ    ト `=j r=レ     /ミ !彡 T 爪| / / ̄|/´__,ャ  |`三三‐/     |`=、|,='| /人 ヽ ミ='/|`:::::::/イ__ ト`ー く__,-,  、 _!_ / /  `ー─'" |_,.イ、 | |/、   Y  /| | | j / ミ`┴'彡\     NCMB        某社       某社
  6. Copyright @ NIFTY Corporation All Rights 6 _人人人人_ > 最強 <  ̄Y^Y^Y^Y^ ̄

  7. Copyright @ NIFTY Corporation All Rights       ,、L,,,,,,,,,,,,,,,,,,,,,,,,-‐‐‐''''"~´_____,,,,、、-‐'r゛   , -‐'    ________,,,,,,,、、、-=;;''''ヽ| ,,、-‐''"  < ―‐'''!'''''''h''T'''廿'i= .r廿´| {

    r~    ̄ ̄ |⌒i r ヽ-- '   |i‐‐‐'  }|       |λ|{        ヽ    .| .      |ヽi |       , r.'    |       lV r            |  Parse.comは大変なものを盗んでいきました。       `、 !   ‐‐''''''''"""'   !        ヽト     ""     /          あなたの信頼です。          |\         ,.!        ,,、rl  '''''''ー‐_"''''""_´└ 、      // __`-‐''""~   /    丶-、__
  8. Copyright @ NIFTY Corporation All Rights ࠓޙͷબ୒ࢶ 8 ଓ͚Δ ଓ͚ͳ͍

    ৐Γ׵͑Δ ࣗྗͰߏங 1BSTF4FSWFS "84 "[VSF /$.#
  9. Copyright @ NIFTY Corporation All Rights ΞϓϦ։ൃͱαʔό αʔόଆͷ։ൃίετ αʔόͷϝϯςφϯε ηΩϡϦςΟରࡦ

    
  10. Copyright @ NIFTY Corporation All Rights େखͰͷ͝ར༻ 10

  11. Copyright @ NIFTY Corporation All Rights 11 σʔλετΞ νΣοΫΠϯσʔλͷه࿥ ϢʔβؒϝοηʔδͳͲ

  12. Copyright @ NIFTY Corporation All Rights 12 ϑΝΠϧετΞ Πϕϯτදࣔ༻)5.- ΞϓϦͰ࢖͏ը૾ɺԻָɺಈըͳͲ

  13. Copyright @ NIFTY Corporation All Rights Ϣʔβ؅ཧ 13 ೝূʢϝʔϧϢʔβ*%ʣ ϝʔϧΞυϨε֬ೝύεϫʔυ

    ϦϚΠϯμʔϝʔϧ ιʔγϟϧαʔϏεͰͷϩάΠϯ
  14. Copyright @ NIFTY Corporation All Rights ϓογϡ௨஌ػೳ 14  8FC؅ཧը໘͔Β࡞੒

    J04"OESPJEڞ௨ Ґஔ৘ใͰߜΓࠐΈ ։෧཰άϥϑ
  15. Copyright @ NIFTY Corporation All Rights ରԠϓϥοτϑΥʔϜ 15 ͢΂ͯΦʔϓϯιʔε

  16. Copyright @ NIFTY Corporation All Rights Ձ֨ʹ͍ͭͯ Α͋͘Δ࣭໰ɹ̍ ݄ສ"1*ΞΫηε·Ͱແྉ

  17. Copyright @ NIFTY Corporation All Rights ϓογϡ௨஌͚ͩ࢖͍͍ͨ Α͋͘Δ࣭໰ɹ Ұ෦ͷػೳ͚ͩͰ໰୊͋Γ·ͤΜ

  18. Copyright @ NIFTY Corporation All Rights ྨࣅαʔϏεͱͷҧ͍͸ʁ Α͋͘Δ࣭໰ɹ Ϋϥ΢υ؀ڥ͕ࣗࣾͳͷͰ4-"͕࣮֬ ೔ຊޠαϙʔτ

  19. Copyright @ NIFTY Corporation All Rights 1BSTFDPN͔ΒͷҠߦํ๏͸ʁ Α͋͘Δ࣭໰ɹ

  20. Copyright @ NIFTY Corporation All Rights Ҡߦʹ͍ͭͯ ϓογϡ௨஌͸྆4%,Λ࢖ͬͨঢ়ଶͰঃʑʹ ΫϥεˠσʔλετΞ Ϣʔβσʔλˠύεϫʔυ͕ʜ

    Ϋϥ΢υίʔυˠεΫϦϓτ 8FC)PPLTˠχϑςΟΫϥ΢υͷ.255 "OESPJEͰ4FOEFS*%Λద༻͍ͯ͠ͳ͍৔߹͸ແཧ
  21. Copyright @ NIFTY Corporation All Rights 1BSTFDPNͱ/$.#ͷҧ͍ 21 1BSTF /$.#

    ର৅ ελʔτΞοϓ େखʙݸਓ։ൃऀ ՝ۚମܥ ैྔ՝ۚ ֹ݄ఆֹ ੒௕͢Δͱʜ ଔۀ Ξ΢τιʔε ฼ମ 'BDFCPPL ෋࢜௨χϑςΟΫϥ΢ υ
  22. Copyright @ NIFTY Corporation All Rights ࠓޙͲ͏ͳͷʁେৎ෉ͳͷʁ Α͋͘Δ࣭໰ɹ

  23. Copyright @ NIFTY Corporation All Rights εΫϦϓτػೳఏڙ։࢝ʂ 23

  24. Copyright @ NIFTY Corporation All Rights 24 /$.#4DSJQUTDSJQUOFX/$.#4DSJQU UFTU4DSJQUKT 

    /$.#4DSJQU.FUIPE5ZQF(&5  +40/0CKFDURVFSZOFX+40/0CKFDU \OBNF/$.#^  TDSJQUFYFDVUF*O#BDLHSPVOE OVMM OVMM RVFSZ OFX&YFDVUF4DSJQU$BMMCBDL \ !0WFSSJEF QVCMJDWPJEEPOF CZUF<>SFTVMU /$.#&YDFQUJPOF \ JG FOVMM \ࣦഊ ^FMTF\ ੒ޭ ^ ^ ^ 
  25. Copyright @ NIFTY Corporation All Rights σʔλετΞͷҠߦʹ͍ͭͯ 25 σʔλܕͷ໰୊ -PDBM%BUB4UPSFͷ໰୊

  26. Copyright @ NIFTY Corporation All Rights 26 PFObject *gameScore =

    [PFObject objectWithClassName:@"GameScore"]; gameScore[@"score"] = @1337; gameScore[@"playerName"] = @"Sean Plott"; gameScore[@"cheatMode"] = @NO; [gameScore saveInBackgroundWithBlock:^(BOOL succeeded, NSError *error) { if (succeeded) { // The object has been saved. } else { // There was a problem, check error.description } }]; QBSTFDPNͷ৔߹
  27. Copyright @ NIFTY Corporation All Rights NCMBobject *gameScore = [NCMBobject

    objectWithClassName:@"GameScore"]; [gameScore setobject:@"1337" forKey:@"score"]; [gameScore setobject:@"Sean Plott" forKey:@"playerName"]; [gameScore setobject:@NO forKey:@"cheatMode"]; //データストアへの登録を実施 [gameScore saveInBackgroundWithBlock:^(NSError *error) { if (error){ //保存に失敗した場合の処理 } else { //保存に成功した場合の処理 } }]; /$.#ͷ৔߹
  28. Copyright @ NIFTY Corporation All Rights 28 PFQuery *query =

    [PFQuery queryWithClassName:@"GameScore"]; [query whereKey:@"playerName" equalTo:@"Dan Stemkoski"]; [query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) { if (!error) { // The find succeeded. NSLog(@"Successfully retrieved %d scores.", objects.count); // Do something with the found objects for (PFObject *object in objects) { NSLog(@"%@", object.objectId); } } else { // Log details of the failure NSLog(@"Error: %@ %@", error, [error userInfo]); } }]; NCMBQuery *query = [NCMBQuery queryWithClassName:@"GameScore"]; [query whereKey:@"playerName" equalTo:@"Dan Stemkoski"]; [query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) { if (!error) { // 取得成功 } else { // エラー処理 } }]; ݕࡧ 1BSTFDPN /$.#
  29. Copyright @ NIFTY Corporation All Rights 29 ParseObject gameScore =

    new ParseObject("GameScore"); gameScore.put("score", 1337); gameScore.put("playerName", "Sean Plott"); gameScore.saveInBackground(new SaveCallback() { public void done(ParseException e) { // ここは保存完了後に呼び出される。 if (e == null) { System.out.println("保存成功"); } else { System.out.println("保存失敗"); } } }); NCMBObject gameScore = new NCMBObject("GameScore"); gameScore.put("score", 1337); gameScore.put("playerName", "Sean Plott"); gameScore.saveInBackground(new DoneCallback() { @Override public void done(NCMBException e) { if (e != null) { //エラー発生時の処理 } else { //成功時の処理 } } }); "OESPJEͷ৔߹ 1BSTFDPN /$.#
  30. Copyright @ NIFTY Corporation All Rights ParseQuery<ParseObject> query = ParseQuery.getQuery("GameScore");

    query.getInBackground("xWMyZ4YEGZ", new GetCallback<ParseObject>() { public void done(ParseObject object, ParseException e) { if (e == null) { // object will be your game score } else { // something went wrong } } }); NCMBObject obj = new NCMBObject("TestClass"); obj.setObjectId("getTestObjectId"); obj.fetchInBackground(new FetchCallback<NCMBObject>() { @Override public void done(NCMBObject object, NCMBException e) { if (e != null) { //エラー時の処理 } else { //取得成功時の処理 } } }); "OESPJEͰݕࡧ
  31. Copyright @ NIFTY Corporation All Rights 31 ϓογϡ௨஌ͷҠߦ J04͸ಛʹ໰୊ͳ͠ "OESPJE͸4FOEFS*%Λొ࿥͍ͯ͠Ε͹໰୊ͳ͠

  32. Copyright @ NIFTY Corporation All Rights 32 Ϣʔβ؅ཧͷҠߦ ύεϫʔυ͸ҠߦͰ͖·ͤΜʜ ಗ໊ձһͷҠߦˠΞϓϦଆͰॲཧ

  33. Copyright @ NIFTY Corporation All Rights 33 όΠφϦσʔλͷҠߦ ϑΝΠϧετΞΛར༻ )5514ΞΫηεͰ͖·͢

  34. Copyright @ NIFTY Corporation All Rights ࣄྫ

  35. Copyright @ NIFTY Corporation All Rights ఻આͷཱྀஂ

  36. Copyright @ NIFTY Corporation All Rights

  37. Copyright @ NIFTY Corporation All Rights αϙʔτମ੍

  38. Copyright @ NIFTY Corporation All Rights ిࢠॻ੶ൢചʢ0ԁʣͯ͠·͢ 38 IUUQHPPHM7:T9Y

  39. Copyright @ NIFTY Corporation All Rights 39 ·ͱΊ  J04"OESPJE6OJUZ+BWB4DSJQUʹରԠ

     αʔόαΠυͷ։ൃ͕ෆཁɻΞϓϦ։ൃΛߴ଎Խ  ແྉ͔Β࢖͍࢝ΊΒΕΔ
  40. !OJGUZDMPVE@NC IUUQTGCNFOJGUZDMPVENC