constats.dart 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //Firebase
  2. const userCollection = 'Users';
  3. const callsCollection = 'Calls';
  4. const tokensCollection = 'Tokens';
  5. const fcmKey = 'AAAA8hfeYZKXDOOmZ6OR8Cd70oZdKsD2Ao44YfuXBFgocNOH5gp2'; //replace with your Fcm key
  6. //Routes
  7. const loginScreen = '/';
  8. const homeScreen = '/homeScreen';
  9. const callScreen = '/callScreen';
  10. const testScreen = '/testScreen';
  11. //Agora
  12. const agoraAppId = 'e21dde29886b'; //replace with your agora app id
  13. const agoraTestChannelName = 'newChannel'; //replace with your agora channel name
  14. const agoraTestToken = '006effbIACQIrib0zw+jFMnUP0OBgJajy/o8utZ2Zg9CqRnJo7WwAAAAAEABUm4+syy+mYgEAAQDOL6Zi'; //replace with your agora token
  15. //EndPoints -- this is for generating call token programmatically for each call
  16. const cloudFunctionBaseUrl = 'https://us-central1-agora-409098655.cloudfunctions.net/'; //replace with your clouded api base url
  17. const fireCallEndpoint = 'app/access_token'; //replace with your clouded api endpoint
  18. const int callDurationInSec = 45;
  19. //Call Status
  20. enum CallStatus {
  21. none,
  22. ringing,
  23. accept,
  24. reject,
  25. unAnswer,
  26. cancel,
  27. end,
  28. }