This file contains 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
CEKRequest request = ...; // Clova から来たリクエスト | |
var client = new LineMessagingClient("LINE Developers で取得できるシークレット"); | |
await client.PushMessageAsync( | |
request.Session.User.UserId, | |
new List<ISendMessage> | |
{ | |
new TextMessage("送りたいメッセージ"), | |
}); |
This file contains 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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class CameraController : MonoBehaviour | |
{ | |
public GameObject Player; | |
private Vector3 offset; | |
// Use this for initialization |
This file contains 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
{ | |
"pinpointLocations":[ | |
{ | |
"link":"http://weather.livedoor.com/area/forecast/4020200", | |
"name":"\u5927\u725f\u7530\u5e02" | |
}, | |
{ | |
"link":"http://weather.livedoor.com/area/forecast/4020300", | |
"name":"\u4e45\u7559\u7c73\u5e02" | |
}, |
This file contains 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
public class Rootobject | |
{ | |
public Pinpointlocation[] pinpointLocations { get; set; } | |
public string link { get; set; } | |
public Forecast[] forecasts { get; set; } | |
public Location location { get; set; } | |
public DateTime publicTime { get; set; } | |
public Copyright copyright { get; set; } | |
public string title { get; set; } | |
public Description description { get; set; } |
This file contains 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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
WeatherAsync().Wait(); | |
Console.ReadKey(); // 何かキーを押すまでプログラムが終了しない | |
} | |
private static async Task WeatherAsync() | |
{ |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace LiveUnitTestSample | |
{ | |
public class Calc | |
{ |
This file contains 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
using System; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
using LiveUnitTestSample; | |
namespace UnitTestProject1 | |
{ | |
[TestClass] | |
public class UnitTest1 | |
{ | |
[TestMethod] |
This file contains 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
using System; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
using LiveUnitTestSample; | |
namespace UnitTestProject1 | |
{ | |
[TestClass] | |
public class UnitTest1 | |
{ | |
[TestMethod] |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace LiveUnitTestSample | |
{ | |
public class Calc | |
{ |
This file contains 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
// 『UserText』というIDの振られたテキストフォームに『テスト入力です』と入力する | |
app.EnterText(c => c.Marked("UserText"), "テスト入力です"); | |
// 『UserText』というIDの振られたテキストフォームの入力文字列を空にする | |
app.ClearText("UserText"); | |
// 『UserText』というIDの振られたテキストフォームに『テスト入力2』と入力する | |
app.EnterText(c => c.Marked("UserText"), "テスト入力2"); | |
// 『LoginButton』というIDのボタンをタップする |
NewerOlder