GET api/Activity/Count

Количество непрочитанных комментариев в ленте активности текущего пользователя (заявок и задач)

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Success Resource Description

Возвращает количество непрочитанных комментариев в ленте активности (заявок и задач)

Collection of ActivityItem
NameDescriptionTypeAdditional information
Permissions

Битовая маска разрешений. Для заявок - RequestPermissionSet Для задач - TaskPermissionSet Для проектов - ProjectPermissionSet

integer

None.

LastModifiedDate

Конкурентная метка

date

None.

Id

Идентификатор элемента

integer

None.

ActivityItemType

Тип элемнта ленты активности, а по сути контроллер

ActivityItemType

None.

Status

Статус элемента (статус заявки, задачи, проекта...)

integer

None.

Description

Описание элемента

string

None.

AccessRequest

Заявка на доступ к ресурсу.

AccessRequestViewModel

None.

Comments

Плоский список комментариев к элементу без ответов (Answers)

Collection of CommentViewModel

None.

Error Resource Description (Реализовано не везде)

OperationResult
NameDescriptionTypeAdditional information
Target

Возвращаемый объект

Object

None.

Status

Статус операции

ResultStatus

None.

Error

Детализация ошибки

Error

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Permissions": 1,
    "LastModifiedDate": "2022-08-17T04:38:56+03:00",
    "Id": 3,
    "ActivityItemType": 0,
    "Status": 4,
    "Description": "sample string 5",
    "AccessRequest": {
      "AccessSheetId": 1,
      "AccessResource": "sample string 2",
      "User": {
        "Department": "sample string 1",
        "Id": 2,
        "Login": "sample string 3",
        "FirstName": "sample string 4",
        "LastName": "sample string 5",
        "RegionId": 6,
        "Appoint": "sample string 7",
        "Organization": "sample string 8"
      }
    },
    "Comments": [
      {
        "Permissions": 0,
        "Id": 1,
        "Author": {
          "Id": 1,
          "Login": "sample string 2",
          "FirstName": "sample string 3",
          "LastName": "sample string 4",
          "RegionId": 5,
          "Appoint": "sample string 6",
          "Organization": "sample string 7"
        },
        "JointAuthors": [
          {
            "Id": 1,
            "Login": "sample string 2",
            "FirstName": "sample string 3",
            "LastName": "sample string 4",
            "RegionId": 5,
            "Appoint": "sample string 6",
            "Organization": "sample string 7"
          }
        ],
        "Addressees": [
          {
            "Id": 1,
            "User": {
              "Id": 1,
              "Login": "sample string 2",
              "FirstName": "sample string 3",
              "LastName": "sample string 4",
              "RegionId": 5,
              "Appoint": "sample string 6",
              "Organization": "sample string 7"
            },
            "ReadDate": "2022-08-17T04:38:56+03:00",
            "IsReaded": true
          },
          {
            "Id": 1,
            "User": {
              "Id": 1,
              "Login": "sample string 2",
              "FirstName": "sample string 3",
              "LastName": "sample string 4",
              "RegionId": 5,
              "Appoint": "sample string 6",
              "Organization": "sample string 7"
            },
            "ReadDate": "2022-08-17T04:38:56+03:00",
            "IsReaded": true
          }
        ],
        "Text": "sample string 2",
        "CreateDate": "2022-08-17T04:38:56+03:00",
        "CommentType": 0,
        "Answers": [],
        "ReadStatus": 0
      },
      {
        "Permissions": 0,
        "Id": 1,
        "Author": {
          "Id": 1,
          "Login": "sample string 2",
          "FirstName": "sample string 3",
          "LastName": "sample string 4",
          "RegionId": 5,
          "Appoint": "sample string 6",
          "Organization": "sample string 7"
        },
        "JointAuthors": [
          {
            "Id": 1,
            "Login": "sample string 2",
            "FirstName": "sample string 3",
            "LastName": "sample string 4",
            "RegionId": 5,
            "Appoint": "sample string 6",
            "Organization": "sample string 7"
          }
        ],
        "Addressees": [
          {
            "Id": 1,
            "User": {
              "Id": 1,
              "Login": "sample string 2",
              "FirstName": "sample string 3",
              "LastName": "sample string 4",
              "RegionId": 5,
              "Appoint": "sample string 6",
              "Organization": "sample string 7"
            },
            "ReadDate": "2022-08-17T04:38:56+03:00",
            "IsReaded": true
          },
          {
            "Id": 1,
            "User": {
              "Id": 1,
              "Login": "sample string 2",
              "FirstName": "sample string 3",
              "LastName": "sample string 4",
              "RegionId": 5,
              "Appoint": "sample string 6",
              "Organization": "sample string 7"
            },
            "ReadDate": "2022-08-17T04:38:56+03:00",
            "IsReaded": true
          }
        ],
        "Text": "sample string 2",
        "CreateDate": "2022-08-17T04:38:56+03:00",
        "CommentType": 0,
        "Answers": [],
        "ReadStatus": 0
      }
    ]
  },
  {
    "Permissions": 1,
    "LastModifiedDate": "2022-08-17T04:38:56+03:00",
    "Id": 3,
    "ActivityItemType": 0,
    "Status": 4,
    "Description": "sample string 5",
    "AccessRequest": {
      "AccessSheetId": 1,
      "AccessResource": "sample string 2",
      "User": {
        "Department": "sample string 1",
        "Id": 2,
        "Login": "sample string 3",
        "FirstName": "sample string 4",
        "LastName": "sample string 5",
        "RegionId": 6,
        "Appoint": "sample string 7",
        "Organization": "sample string 8"
      }
    },
    "Comments": [
      {
        "Permissions": 0,
        "Id": 1,
        "Author": {
          "Id": 1,
          "Login": "sample string 2",
          "FirstName": "sample string 3",
          "LastName": "sample string 4",
          "RegionId": 5,
          "Appoint": "sample string 6",
          "Organization": "sample string 7"
        },
        "JointAuthors": [
          {
            "Id": 1,
            "Login": "sample string 2",
            "FirstName": "sample string 3",
            "LastName": "sample string 4",
            "RegionId": 5,
            "Appoint": "sample string 6",
            "Organization": "sample string 7"
          }
        ],
        "Addressees": [
          {
            "Id": 1,
            "User": {
              "Id": 1,
              "Login": "sample string 2",
              "FirstName": "sample string 3",
              "LastName": "sample string 4",
              "RegionId": 5,
              "Appoint": "sample string 6",
              "Organization": "sample string 7"
            },
            "ReadDate": "2022-08-17T04:38:56+03:00",
            "IsReaded": true
          },
          {
            "Id": 1,
            "User": {
              "Id": 1,
              "Login": "sample string 2",
              "FirstName": "sample string 3",
              "LastName": "sample string 4",
              "RegionId": 5,
              "Appoint": "sample string 6",
              "Organization": "sample string 7"
            },
            "ReadDate": "2022-08-17T04:38:56+03:00",
            "IsReaded": true
          }
        ],
        "Text": "sample string 2",
        "CreateDate": "2022-08-17T04:38:56+03:00",
        "CommentType": 0,
        "Answers": [],
        "ReadStatus": 0
      },
      {
        "Permissions": 0,
        "Id": 1,
        "Author": {
          "Id": 1,
          "Login": "sample string 2",
          "FirstName": "sample string 3",
          "LastName": "sample string 4",
          "RegionId": 5,
          "Appoint": "sample string 6",
          "Organization": "sample string 7"
        },
        "JointAuthors": [
          {
            "Id": 1,
            "Login": "sample string 2",
            "FirstName": "sample string 3",
            "LastName": "sample string 4",
            "RegionId": 5,
            "Appoint": "sample string 6",
            "Organization": "sample string 7"
          }
        ],
        "Addressees": [
          {
            "Id": 1,
            "User": {
              "Id": 1,
              "Login": "sample string 2",
              "FirstName": "sample string 3",
              "LastName": "sample string 4",
              "RegionId": 5,
              "Appoint": "sample string 6",
              "Organization": "sample string 7"
            },
            "ReadDate": "2022-08-17T04:38:56+03:00",
            "IsReaded": true
          },
          {
            "Id": 1,
            "User": {
              "Id": 1,
              "Login": "sample string 2",
              "FirstName": "sample string 3",
              "LastName": "sample string 4",
              "RegionId": 5,
              "Appoint": "sample string 6",
              "Organization": "sample string 7"
            },
            "ReadDate": "2022-08-17T04:38:56+03:00",
            "IsReaded": true
          }
        ],
        "Text": "sample string 2",
        "CreateDate": "2022-08-17T04:38:56+03:00",
        "CommentType": 0,
        "Answers": [],
        "ReadStatus": 0
      }
    ]
  }
]

text/html, multipart/form-data

Sample:
[{"Permissions":1,"LastModifiedDate":"2022-08-17T04:38:56+03:00","Id":3,"ActivityItemType":0,"Status":4,"Description":"sample string 5","AccessRequest":{"AccessSheetId":1,"AccessResource":"sample string 2","User":{"Department":"sample string 1","Id":2,"Login":"sample string 3","FirstName":"sample string 4","LastName":"sample string 5","RegionId":6,"Appoint":"sample string 7","Organization":"sample string 8"}},"Comments":[{"Permissions":0,"Id":1,"Author":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"JointAuthors":[{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"}],"Addressees":[{"Id":1,"User":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"ReadDate":"2022-08-17T04:38:56+03:00","IsReaded":true},{"Id":1,"User":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"ReadDate":"2022-08-17T04:38:56+03:00","IsReaded":true}],"Text":"sample string 2","CreateDate":"2022-08-17T04:38:56+03:00","CommentType":0,"Answers":[],"ReadStatus":0},{"Permissions":0,"Id":1,"Author":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"JointAuthors":[{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"}],"Addressees":[{"Id":1,"User":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"ReadDate":"2022-08-17T04:38:56+03:00","IsReaded":true},{"Id":1,"User":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"ReadDate":"2022-08-17T04:38:56+03:00","IsReaded":true}],"Text":"sample string 2","CreateDate":"2022-08-17T04:38:56+03:00","CommentType":0,"Answers":[],"ReadStatus":0}]},{"Permissions":1,"LastModifiedDate":"2022-08-17T04:38:56+03:00","Id":3,"ActivityItemType":0,"Status":4,"Description":"sample string 5","AccessRequest":{"AccessSheetId":1,"AccessResource":"sample string 2","User":{"Department":"sample string 1","Id":2,"Login":"sample string 3","FirstName":"sample string 4","LastName":"sample string 5","RegionId":6,"Appoint":"sample string 7","Organization":"sample string 8"}},"Comments":[{"Permissions":0,"Id":1,"Author":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"JointAuthors":[{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"}],"Addressees":[{"Id":1,"User":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"ReadDate":"2022-08-17T04:38:56+03:00","IsReaded":true},{"Id":1,"User":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"ReadDate":"2022-08-17T04:38:56+03:00","IsReaded":true}],"Text":"sample string 2","CreateDate":"2022-08-17T04:38:56+03:00","CommentType":0,"Answers":[],"ReadStatus":0},{"Permissions":0,"Id":1,"Author":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"JointAuthors":[{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"}],"Addressees":[{"Id":1,"User":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"ReadDate":"2022-08-17T04:38:56+03:00","IsReaded":true},{"Id":1,"User":{"Id":1,"Login":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","RegionId":5,"Appoint":"sample string 6","Organization":"sample string 7"},"ReadDate":"2022-08-17T04:38:56+03:00","IsReaded":true}],"Text":"sample string 2","CreateDate":"2022-08-17T04:38:56+03:00","CommentType":0,"Answers":[],"ReadStatus":0}]}]

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.