~dobey/unity-scope-click/check-purchased

« back to all changes in this revision

Viewing changes to libclickscope/click/package.cpp

  • Committer: Rodney Dawes
  • Date: 2014-07-16 21:49:11 UTC
  • mfrom: (314.2.19 devel)
  • Revision ID: rodney.dawes@canonical.com-20140716214911-3vn31avz0lwzcn2e
Merge tip of devel branch.
Move mock pay code to mock_pay.h.

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
        details.download_url = root[JsonKeys::download_url].asString();
127
127
        details.license = root[JsonKeys::license].asString();
128
128
 
 
129
        if (root[JsonKeys::department].isArray())
 
130
        {
 
131
            auto const dept_array = root[JsonKeys::department];
 
132
            if (dept_array.size() > 0)
 
133
            {
 
134
                details.department = dept_array[dept_array.size() - 1].asString();
 
135
            }
 
136
        }
 
137
 
129
138
        // Optional details go here.
130
139
        if (root[JsonKeys::version].isString())
131
140
            details.version = root[JsonKeys::version].asString();