Written with StackEdit.
ホーム画面から「陽性者との接触を確認する」をクリックしたときは、
- UserDataModel::ExposureInformation コレクションの数を調べる
> Written with [StackEdit](https://stackedit.io/). | |
# 接触数コード解析 | |
## 「陽性者との接触を確認する」をクリックした時 | |
ホーム画面から「陽性者との接触を確認する」をクリックしたときは、 | |
1. UserDataModel::ExposureInformation コレクションの数を調べる |
Written with StackEdit.
ホーム画面から「陽性者との接触を確認する」をクリックしたときは、
```mermaid | |
sequenceDiagram | |
PlatformScheduleFetch ->> ExposureNotification(share): UpdateKeysFromServer | |
ExposureNotification(share) ->> ExposureNotificationHandler: FetchExposureKeyBatchFilesFromServerAsync(submitBatches) | |
ExposureNotificationHandler ->> ExposureNotificationHandler: DownloadBatchAsync | |
ExposureNotificationHandler -->> ExposureNotificationHandler: downloadedFiles | |
ExposureNotificationHandler ->> ExposureNotificationHandler: downloadedFiles.Count > 0 | |
ExposureNotificationHandler ->> ExposureNotification(share): submitBatches: callback |
```mermaid | |
sequenceDiagram | |
HomePageView ->> HomePageViewModel: OnClickExposures | |
HomePageViewModel ->> ExposureNotificationService: GetExposureCount() | |
ExposureNotificationService ->> UserDataModel: ExposureInformation.Count() | |
Note right of UserDataModel: UserDataModel::ExposureInformationに保持される | |
UserDataModel -->> ExposureNotificationService: count | |
ExposureNotificationService -->> HomePageViewModel: count |
#include <M5Stack.h> | |
#include <BLEDevice.h> | |
// Contact Tracing Bluetooth Specification (Apple/Google) | |
// https://blog.google/documents/58/Contact_Tracing_-_Bluetooth_Specification_v1.1_RYGZbKW.pdf | |
const char* uuid = "0000fd6f-0000-1000-8000-00805f9b34fb"; | |
unsigned int count = 0; | |
class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks { | |
void onResult(BLEAdvertisedDevice advertisedDevice) { |
// SoftwareSerial を使って Bluetooth で通信 | |
#include <SoftwareSerial.h> | |
#include <TinyWireM.h> | |
const int DRV8830 = 0xC8 >> 1 ; // 0x64; | |
SoftwareSerial mySerial = SoftwareSerial(3, 4); // RX, TX | |
void writeRegister( int drv, byte vset, byte data ) | |
{ |
/********************************************************************************************** | |
* Copyright 2009 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file | |
* except in compliance with the License. A copy of the License is located at | |
* | |
* http://aws.amazon.com/apache2.0/ | |
* | |
* or in the "LICENSE.txt" file accompanying this file. This file is distributed on an "AS IS" | |
* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
open System | |
open System.IO | |
open System.Linq | |
// make dir.txt | |
// C:\Users\masuda>dir /s/b "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETPortable\" > dir.txt | |
let mutable profiles = [] | |
let mutable targets = [] | |
let mutable pnames = [] |
using System; | |
using System.IO; | |
using System.Threading.Tasks; | |
// gmcs -sdk:4.5 /o:joytest.exe joytest.cs | |
namespace Sample.bot | |
{ | |
public struct js_event | |
{ |