Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AIP 14: ChatRooms API #14

Open
zyuhel opened this issue Feb 7, 2019 · 7 comments
Open

AIP 14: ChatRooms API #14

zyuhel opened this issue Feb 7, 2019 · 7 comments

Comments

@zyuhel
Copy link
Member

zyuhel commented Feb 7, 2019

Here will go discussion regarding Chatrooms aip

@zyuhel zyuhel changed the title AIP ChatRooms API AIP 14 - ChatRooms API Feb 7, 2019
@zyuhel
Copy link
Member Author

zyuhel commented Feb 7, 2019

@zyuhel zyuhel changed the title AIP 14 - ChatRooms API AIP 14: ChatRooms API Feb 12, 2019
@MaaKut
Copy link
Member

MaaKut commented Feb 12, 2019

  1. Please, provide a sample of the full /api/chatrooms response.
  2. In the /api/chatrooms/... response the last transaction details should be moved to a nested property:
{
    lastTransaction: {
        id: ...,
        type: ....
    },
    participants: [...]
}
  1. Semantics of the withPayments param is not clear: does it rely on type or amount > 0?
  2. BTW, do we really need withPayments? Transfers are the first class citizens in the chats now, so I can hardly imagine uses cases when withPayments needs to be false.

@zyuhel
Copy link
Member Author

zyuhel commented Feb 12, 2019

  1. It makes sense.
  2. withPayments semantics should add transfers, it doesn't matter how it will work on backend, we are discussing API AIP here.
  3. May be someone will want to make chat app without token transfers, because of some regulations, but your point is valid. Maybe we should have parameter withoutPayments

@bludnic
Copy link
Member

bludnic commented Feb 12, 2019

orderBy - order by field, same as in transaction list API, by default = timestamp:desc&

The responses received from these endpoints are not equal:
/api/chatrooms/U123456
/api/chatrooms/U123456?orderBy=timestamp:desc

@bludnic
Copy link
Member

bludnic commented Feb 12, 2019

Missing property height.

/api/chatrooms/U111111/U222222 - ok
/api/chatrooms/U111111 - no height

@adamant-al
Copy link
Member

Still not clear what withPayments or withoutPayments does.
Payments means ADM transfers (type 0), or messages with rich text of ETH/DOGE/etc (type 8).

I think public KVS records of participants (as public ETH and DOGE addresses) should also be returned with some kind of parameter like fetchKVS. It will help to make transaction lists with names (user friendly).

@adamant-al
Copy link
Member

limit — limit field, same as in transactions list API, default HUI_HUI
I think default should be 25.

zyuhel added a commit to Adamant-im/adamant that referenced this issue Apr 9, 2019
Return last transaction data in lastTransaction object according to [AIP-14](Adamant-im/AIPs#14)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants