Розділ 3. Опис програмного продукту та алгоритм його створення
Published" :1 443 099 553,. Public string type { get; set; }. Public string href { get; set; }. Public string href { get; set; }. Public string href { get; set; }. Public int updated { get; set; }. Public int updated { get; set; }. Public List items { get; set; }. Updated" :1 443 100 001,. Updated" :1 443 099 553,. Public string id { get; set; }. Public string id { get; set; }. Public Self self… Читати ще >
Розділ 3. Опис програмного продукту та алгоритм його створення (реферат, курсова, диплом, контрольна)
Перш ніж приступити безпосередньо до розробки додатку потрібно було вивчити спосіб обміну інформації з онлайн-сервісом за допомогою його API «див. розділ 1» «з електронного ресурсу [11]», визначити необхідні для роботи додатку дані та спосіб їх збереження на клієнтському пристрої.
Приклад JSON об'єкту отриманого з сервера, що містить в собі один запис:
{.
" direction" :" ltr" ,.
" id" :" feed/5594de7cfea0e74d87000305″ ,.
" title" :" Хабрахабр / Все публикации" ,.
" description" :" «,.
" self" :
{" href" :" https://theoldreader.com/reader/api/0/stream/contents?output=json&xt=user/-/state/com.google/read&n=1&s=user/-/state/com.google/reading-list" },.
" alternate" :
{" href" :" http://habrahabr.ru/" ," type" :" text/html" },.
" updated" :1 443 100 001,.
" items": [.
{.
" crawlTimeMsec" :" 1 443 100 000 931″ ,.
" timestampUsec" :" 1 443 099 553 000 000″ ,.
" id" :" tag: google.com, 2005: reader/item/5603f5615f45b7c15c003bed" ,.
" categories" :
[.
" user/-/state/com.google/reading-list" ," user/-/state/com.google/fresh" ,.
" user/-/label/Разное" .
],.
" title" :" [Перевод] Еще одно встроенное шпионское приложение обнаружено на компьютерах Lenovo" ,.
" published" :1 443 099 553,.
" updated" :1 443 099 553,.
" canonical": [{" href" :" http://habrahabr.ru/post/267 645/" }],.
" alternate": [{" href" :" http://habrahabr.ru/post/267 645/" ," type" :" text/html" }],.
" summary" :
{.
" direction" :" ltr" ,.
" content" :" У восстановленного с завода Thinkpad с предустановленной Windows 7 в планировщике есть приложение, которое включается раз в день и собирает данные о том, как вы используете компьютер. После этого все сведения отправляются компании-аналитику. Информация о сборе данных присутствует в пользовательском соглашении, но зарыта очень глубоко. Читать дальше >" .
},.
" author" :" VahMaster" ,.
" annotations": [],.
" likingUsers": [],.
" likingUsersCount" :0,.
" comments": [],.
" origin" :
{.
" streamId" :" feed/5594de7cfea0e74d87000305″ ,.
" title" :" Хабрахабр / Все публикации" ,.
" htmlUrl" :" http://habrahabr.ru/" .
}.
}.
],.
" continuation" :" 1 443 099 999″ .
}.
Клас який описує структуру цього об'єкта вигляде так:
public class Self.
{.
public string href { get; set; }.
}.
public class Canonical.
{.
public string href { get; set; }.
}.
public class Alternate.
{.
public string href { get; set; }.
public string type { get; set; }.
}.
public class Summary.
{.
public string direction { get; set; }.
public string content { get; set; }.
}.
public class Origin.
{.
public string streamId { get; set; }.
public string title { get; set; }.
public string htmlUrl { get; set; }.
}.
public class RawItem.
{.
public string crawlTimeMsec { get; set; }.
public string timestampUsec { get; set; }.
public string id { get; set; }.
public List categories { get; set; }.
public string title { get; set; }.
public int published { get; set; }.
public int updated { get; set; }.
public List canonical { get; set; }.
public List alternate { get; set; }.
public Summary summary { get; set; }.
public string author { get; set; }.
public List annotations { get; set; }.
public List likingUsers { get; set; }.
public int likingUsersCount { get; set; }.
public List comments { get; set; }.
public Origin origin { get; set; }.
}.
public class RawFeedItem.
{.
public string direction { get; set; }.
public string id { get; set; }.
public string title { get; set; }.
public string description { get; set; }.
public Self self { get; set; }.
public int updated { get; set; }.
public List items { get; set; }.
}.