ruby-macrodroid 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8caad514012d7a2d749101b29c035de0b00d87d91aaaf98a11f8e29d5d0660c5
4
- data.tar.gz: 05e52e01b2aa1e9e77bf745bcb4f4c8533d9ab5c7798ed50f4d7081ebc4ccaca
3
+ metadata.gz: 7b99b0c3579e50a88577a63d143082eff0b705e5431b9b603ccfb94e5d88b91e
4
+ data.tar.gz: 708e38f8855c2ae5c2b4bb48db2699483fc68266123d9fab0bf3cf15fe2f7c98
5
5
  SHA512:
6
- metadata.gz: 8986f2053233c870ad76a1cf516a3a902197ee63ea2424fd19d60d64ecd331b5a6cf5efa33f54f0970d3ccbe9918a4018a79bf9c433f1363a8771f7b5d547cf2
7
- data.tar.gz: e8007c3e2b65bf110a32563f7d88e4ec56b0289ee8d0b63a69142b570ed8e312c9721371679cb7d1c3c3597b4917a41f66356e14df99c39c89045a487a693828
6
+ metadata.gz: 405cd2d5766b93e57ef1401569407f66b508504afbc383f1044c8a81d44a7bf291cff4072b6b49cfd88ecfbc046f3fe5dba2e1bdf659f82e84359cd28751a857
7
+ data.tar.gz: '086f03ab70ac608e89bf5e1ed29464e2757de3abdae7f60fa67a65d8b0cc5160006f7dec7acdad83a5b9547469f12c92affe86f939020ccd1d997a5c785d83bd'
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -284,968 +284,2036 @@ end
284
284
 
285
285
 
286
286
 
287
- class WifiConnectionTrigger < Trigger
288
-
289
- def initialize(h={})
290
- super({}.merge(h))
291
- end
292
-
293
- end
294
-
295
287
  class WebHookTrigger < Trigger
296
288
 
297
- def initialize(h={})
298
- super({identifier: ''}.merge(h))
299
- @list << 'identifier'
300
- end
289
+ def initialize(h={})
301
290
 
302
- def identifier()
303
- @h[:identifier]
304
- end
291
+ options = {
292
+ identifier: ''
293
+ }
294
+
295
+ super(options.merge h)
305
296
 
306
- def identifier=(val)
307
- @h[:identifier] = val
308
297
  end
309
298
 
310
299
  end
311
300
 
312
301
  class WifiConnectionTrigger < Trigger
313
302
 
314
- def initialize(h={})
315
- super({}.merge h)
303
+ def initialize(h={})
304
+
305
+ options = {
306
+ ssid_list: [""],
307
+ wifi_state: 2
308
+ }
309
+
310
+ super(options.merge h)
311
+
316
312
  end
317
313
 
318
314
  end
319
315
 
320
316
  class ApplicationInstalledRemovedTrigger < Trigger
321
317
 
322
- def initialize(h={})
323
- super({}.merge h)
318
+ def initialize(h={})
319
+
320
+ options = {
321
+ application_name_list: [],
322
+ package_name_list: [],
323
+ installed: true,
324
+ application_option: 0,
325
+ updated: false
326
+ }
327
+
328
+ super(options.merge h)
329
+
324
330
  end
325
331
 
326
332
  end
327
333
 
328
334
  class ApplicationLaunchedTrigger < Trigger
329
335
 
330
- def initialize(h={})
331
- super({}.merge h)
336
+ def initialize(h={})
337
+
338
+ options = {
339
+ application_name_list: ["Chrome"],
340
+ package_name_list: ["com.android.chrome"],
341
+ launched: true
342
+ }
343
+
344
+ super(options.merge h)
345
+
332
346
  end
333
347
 
334
348
  end
335
349
 
336
350
  class BatteryLevelTrigger < Trigger
337
351
 
338
- def initialize(h={})
339
- super({}.merge h)
352
+ def initialize(h={})
353
+
354
+ options = {
355
+ battery_level: 50,
356
+ decreases_to: true,
357
+ option: 0
358
+ }
359
+
360
+ super(options.merge h)
361
+
340
362
  end
341
363
 
342
364
  end
343
365
 
344
366
  class BatteryTemperatureTrigger < Trigger
345
367
 
346
- def initialize(h={})
347
- super({}.merge h)
368
+ def initialize(h={})
369
+
370
+ options = {
371
+ decreases_to: true,
372
+ option: 0,
373
+ temperature: 30
374
+ }
375
+
376
+ super(options.merge h)
377
+
348
378
  end
349
379
 
350
380
  end
351
381
 
352
382
  class PowerButtonToggleTrigger < Trigger
353
383
 
354
- def initialize(h={})
355
- super({}.merge h)
384
+ def initialize(h={})
385
+
386
+ options = {
387
+ num_toggles: 3
388
+ }
389
+
390
+ super(options.merge h)
391
+
356
392
  end
357
393
 
358
394
  end
359
395
 
360
396
  class ExternalPowerTrigger < Trigger
361
397
 
362
- def initialize(h={})
363
- super({}.merge h)
398
+ def initialize(h={})
399
+
400
+ options = {
401
+ power_connected_options: [true, true, true],
402
+ has_set_usb_option: true,
403
+ power_connected: true,
404
+ has_set_new_power_connected_options: true
405
+ }
406
+
407
+ super(options.merge h)
408
+
364
409
  end
365
410
 
366
411
  end
367
412
 
368
413
  class CallActiveTrigger < Trigger
369
414
 
370
- def initialize(h={})
371
- super({}.merge h)
415
+ def initialize(h={})
416
+
417
+ options = {
418
+ contact_list: [{:m_id=>"-2", :m_lookupKey=>"-2", :m_name=>"[Any Number]"}],
419
+ secondary_class_type: 'CallActiveTrigger',
420
+ signal_on: true
421
+ }
422
+
423
+ super(options.merge h)
424
+
372
425
  end
373
426
 
374
427
  end
375
428
 
376
429
  class IncomingCallTrigger < Trigger
377
430
 
378
- def initialize(h={})
379
- super({}.merge h)
431
+ def initialize(h={})
432
+
433
+ options = {
434
+ incoming_call_from_list: [{:m_id=>"-2", :m_lookupKey=>"-2", :m_name=>"[Any Number]"}],
435
+ group_id_list: [],
436
+ group_name_list: [],
437
+ option: 0,
438
+ phone_number_exclude: false
439
+ }
440
+
441
+ super(options.merge h)
442
+
380
443
  end
381
444
 
382
445
  end
383
446
 
384
447
  class OutgoingCallTrigger < Trigger
385
448
 
386
- def initialize(h={})
387
- super({}.merge h)
449
+ def initialize(h={})
450
+
451
+ options = {
452
+ outgoing_call_to_list: [{:m_id=>"-2", :m_lookupKey=>"-2", :m_name=>"[Any Number]"}],
453
+ group_id_list: [],
454
+ group_name_list: [],
455
+ option: 0,
456
+ phone_number_exclude: false
457
+ }
458
+
459
+ super(options.merge h)
460
+
388
461
  end
389
462
 
390
463
  end
391
464
 
392
465
  class CallEndedTrigger < Trigger
393
466
 
394
- def initialize(h={})
395
- super({}.merge h)
467
+ def initialize(h={})
468
+
469
+ options = {
470
+ contact_list: [{:m_id=>"-2", :m_lookupKey=>"-2", :m_name=>"[Any Number]"}],
471
+ group_id_list: [],
472
+ group_name_list: [],
473
+ option: 0,
474
+ phone_number_exclude: false
475
+ }
476
+
477
+ super(options.merge h)
478
+
396
479
  end
397
480
 
398
481
  end
399
482
 
400
483
  class CallMissedTrigger < Trigger
401
484
 
402
- def initialize(h={})
403
- super({}.merge h)
485
+ def initialize(h={})
486
+
487
+ options = {
488
+ contact_list: [{:m_id=>"-2", :m_lookupKey=>"-2", :m_name=>"[Any Number]"}]
489
+ }
490
+
491
+ super(options.merge h)
492
+
404
493
  end
405
494
 
406
495
  end
407
496
 
408
497
  class IncomingSMSTrigger < Trigger
409
498
 
410
- def initialize(h={})
411
- super({}.merge h)
499
+ def initialize(h={})
500
+
501
+ options = {
502
+ sms_from_list: [{:m_id=>"-2", :m_lookupKey=>"-2", :m_name=>"[Any Number]"}],
503
+ group_id_list: [],
504
+ group_name_list: [],
505
+ sms_content: '',
506
+ option: 0,
507
+ excludes: false,
508
+ exact_match: false,
509
+ enable_regex: false,
510
+ sms_number_exclude: false
511
+ }
512
+
513
+ super(options.merge h)
514
+
515
+ end
516
+
517
+ end
518
+
519
+ class WebHookTrigger < Trigger
520
+
521
+ def initialize(h={})
522
+
523
+ options = {
524
+ identifier: ''
525
+ }
526
+
527
+ super(options.merge h)
528
+
529
+ end
530
+
531
+ end
532
+
533
+ class WifiConnectionTrigger < Trigger
534
+
535
+ def initialize(h={})
536
+
537
+ options = {
538
+ ssid_list: [],
539
+ wifi_state: 0
540
+ }
541
+
542
+ super(options.merge h)
543
+
412
544
  end
413
545
 
414
546
  end
415
547
 
416
548
  class BluetoothTrigger < Trigger
417
549
 
418
- def initialize(h={})
419
- super({}.merge h)
550
+ def initialize(h={})
551
+
552
+ options = {
553
+ device_name: 'Any Device',
554
+ bt_state: 0,
555
+ any_device: false
556
+ }
557
+
558
+ super(options.merge h)
559
+
420
560
  end
421
561
 
422
562
  end
423
563
 
424
564
  class HeadphonesTrigger < Trigger
425
565
 
426
- def initialize(h={})
427
- super({}.merge h)
566
+ def initialize(h={})
567
+
568
+ options = {
569
+ headphones_connected: true,
570
+ mic_option: 0
571
+ }
572
+
573
+ super(options.merge h)
574
+
428
575
  end
429
576
 
430
577
  end
431
578
 
432
579
  class SignalOnOffTrigger < Trigger
433
580
 
434
- def initialize(h={})
435
- super({}.merge h)
581
+ def initialize(h={})
582
+
583
+ options = {
584
+ signal_on: true
585
+ }
586
+
587
+ super(options.merge h)
588
+
436
589
  end
437
590
 
438
591
  end
439
592
 
440
593
  class UsbDeviceConnectionTrigger < Trigger
441
594
 
442
- def initialize(h={})
443
- super({}.merge h)
595
+ def initialize(h={})
596
+
597
+ options = {
598
+ option: 0
599
+ }
600
+
601
+ super(options.merge h)
602
+
444
603
  end
445
604
 
446
605
  end
447
606
 
448
607
  class WifiSSIDTrigger < Trigger
449
608
 
450
- def initialize(h={})
451
- super({}.merge h)
609
+ def initialize(h={})
610
+
611
+ options = {
612
+ wifi_cell_info_list: [{:displayName=>"", :ssid=>""}],
613
+ ssid_list: [],
614
+ _in_range: true
615
+ }
616
+
617
+ super(options.merge h)
618
+
452
619
  end
453
620
 
454
621
  end
455
622
 
456
623
  class CalendarTrigger < Trigger
457
624
 
458
- def initialize(h={})
459
- super({}.merge h)
625
+ def initialize(h={})
626
+
627
+ options = {
628
+ title_text: '',
629
+ detail_text: '',
630
+ calendar_name: 'Contacts',
631
+ calendar_id: '3',
632
+ availability: 0,
633
+ check_in_advance: false,
634
+ advance_time_seconds: 0,
635
+ event_start: true,
636
+ ignore_all_day: false,
637
+ negative_advance_check: false,
638
+ enable_regex: false
639
+ }
640
+
641
+ super(options.merge h)
642
+
460
643
  end
461
644
 
462
645
  end
463
-
464
-
465
646
 
466
-
467
647
  class TimerTrigger < Trigger
468
648
 
469
- def initialize(h={})
470
-
649
+ def initialize(h={})
650
+
471
651
  options = {
472
652
  alarm_id: uuid(),
473
- days_of_week: [false, true, false, false, false, false, false],
474
- hour: 0,
475
- minute: 0,
653
+ days_of_week: [false, true, false, false, false, false, false],
654
+ minute: 10,
655
+ hour: 7,
476
656
  use_alarm: false
477
657
  }
478
-
658
+
479
659
  super(options.merge h)
480
-
481
-
660
+
482
661
  end
483
662
 
484
663
  end
485
664
 
486
665
  class StopwatchTrigger < Trigger
487
666
 
488
- def initialize(h={})
489
- super({}.merge h)
667
+ def initialize(h={})
668
+
669
+ options = {
670
+ stopwatch_name: 'timer1',
671
+ seconds: 240
672
+ }
673
+
674
+ super(options.merge h)
675
+
490
676
  end
491
677
 
492
678
  end
493
679
 
494
680
  class DayTrigger < Trigger
495
681
 
496
- def initialize(h={})
497
- super({}.merge h)
682
+ def initialize(h={})
683
+
684
+ options = {
685
+ alarm_id: uuid(),
686
+ hour: 9,
687
+ minute: 0,
688
+ month_of_year: 0,
689
+ option: 0,
690
+ day_of_week: 2,
691
+ day_of_month: 0,
692
+ use_alarm: false
693
+ }
694
+
695
+ super(options.merge h)
696
+
498
697
  end
499
698
 
500
699
  end
501
700
 
502
701
  class RegularIntervalTrigger < Trigger
503
702
 
504
- def initialize(h={})
505
- super({}.merge h)
703
+ def initialize(h={})
704
+
705
+ options = {
706
+ ignore_reference_start_time: false,
707
+ minutes: 0,
708
+ seconds: 7200,
709
+ start_hour: 9,
710
+ start_minute: 10,
711
+ use_alarm: false
712
+ }
713
+
714
+ super(options.merge h)
715
+
506
716
  end
507
717
 
508
718
  end
509
719
 
510
720
  class AirplaneModeTrigger < Trigger
511
721
 
512
- def initialize(h={})
513
- super({}.merge h)
514
- end
722
+ def initialize(h={})
515
723
 
516
- end
724
+ options = {
725
+ airplane_mode_enabled: true
726
+ }
517
727
 
518
- class AutoSyncChangeTrigger < Trigger
728
+ super(options.merge h)
519
729
 
520
- def initialize(h={})
521
- super({}.merge h)
522
730
  end
523
731
 
524
732
  end
525
733
 
526
- class DayDreamTrigger < Trigger
734
+ class AutoSyncChangeTrigger < Trigger
527
735
 
528
- def initialize(h={})
529
- super({}.merge h)
530
- end
736
+ def initialize(h={})
531
737
 
532
- end
738
+ options = {
739
+ option: 0
740
+ }
533
741
 
534
- class DockTrigger < Trigger
742
+ super(options.merge h)
535
743
 
536
- def initialize(h={})
537
- super({}.merge h)
538
744
  end
539
745
 
540
746
  end
541
747
 
542
- class GPSEnabledTrigger < Trigger
748
+ class DayDreamTrigger < Trigger
749
+
750
+ def initialize(h={})
751
+
752
+ options = {
753
+ day_dream_enabled: true
754
+ }
755
+
756
+ super(options.merge h)
757
+
758
+ end
759
+
760
+ end
761
+
762
+ class DockTrigger < Trigger
763
+
764
+ def initialize(h={})
765
+
766
+ options = {
767
+ dock_type: 0
768
+ }
769
+
770
+ super(options.merge h)
771
+
772
+ end
773
+
774
+ end
775
+
776
+ class GPSEnabledTrigger < Trigger
777
+
778
+ def initialize(h={})
779
+
780
+ options = {
781
+ gps_mode_enabled: true
782
+ }
783
+
784
+ super(options.merge h)
543
785
 
544
- def initialize(h={})
545
- super({}.merge h)
546
786
  end
547
787
 
548
788
  end
549
789
 
550
790
  class MusicPlayingTrigger < Trigger
551
791
 
552
- def initialize(h={})
553
- super({}.merge h)
792
+ def initialize(h={})
793
+
794
+ options = {
795
+ option: 0
796
+ }
797
+
798
+ super(options.merge h)
799
+
554
800
  end
555
801
 
556
802
  end
557
803
 
558
804
  class DeviceUnlockedTrigger < Trigger
559
805
 
560
- def initialize(h={})
561
- super({}.merge h)
806
+ def initialize(h={})
807
+
808
+ options = {
809
+ }
810
+
811
+ super(options.merge h)
812
+
813
+ end
814
+
815
+ end
816
+
817
+ class DeviceUnlockedTrigger < Trigger
818
+
819
+ def initialize(h={})
820
+
821
+ options = {
822
+ }
823
+
824
+ super(options.merge h)
825
+
562
826
  end
563
827
 
564
828
  end
565
829
 
566
830
  class AutoRotateChangeTrigger < Trigger
567
831
 
568
- def initialize(h={})
569
- super({}.merge h)
832
+ def initialize(h={})
833
+
834
+ options = {
835
+ option: 0
836
+ }
837
+
838
+ super(options.merge h)
839
+
840
+ end
841
+
842
+ end
843
+
844
+ class ClipboardChangeTrigger < Trigger
845
+
846
+ def initialize(h={})
847
+
848
+ options = {
849
+ text: '',
850
+ enable_regex: false
851
+ }
852
+
853
+ super(options.merge h)
854
+
855
+ end
856
+
857
+ end
858
+
859
+ class BootTrigger < Trigger
860
+
861
+ def initialize(h={})
862
+
863
+ options = {
864
+ }
865
+
866
+ super(options.merge h)
867
+
868
+ end
869
+
870
+ end
871
+
872
+ class BootTrigger < Trigger
873
+
874
+ def initialize(h={})
875
+
876
+ options = {
877
+ }
878
+
879
+ super(options.merge h)
880
+
881
+ end
882
+
883
+ end
884
+
885
+ class IntentReceivedTrigger < Trigger
886
+
887
+ def initialize(h={})
888
+
889
+ options = {
890
+ action: '',
891
+ extra_params: [],
892
+ extra_value_patterns: [],
893
+ extra_variables: [],
894
+ enable_regex: false
895
+ }
896
+
897
+ super(options.merge h)
898
+
899
+ end
900
+
901
+ end
902
+
903
+ class NotificationTrigger < Trigger
904
+
905
+ def initialize(h={})
906
+
907
+ options = {
908
+ text_content: '',
909
+ package_name_list: ["Any Application"],
910
+ application_name_list: ["Any Application"],
911
+ exclude_apps: false,
912
+ ignore_ongoing: true,
913
+ option: 0,
914
+ exact_match: false,
915
+ excludes: false,
916
+ sound_option: 0,
917
+ supress_multiples: true,
918
+ enable_regex: false
919
+ }
920
+
921
+ super(options.merge h)
922
+
923
+ end
924
+
925
+ end
926
+
927
+ class ScreenOnOffTrigger < Trigger
928
+
929
+ def initialize(h={})
930
+
931
+ options = {
932
+ screen_on: true
933
+ }
934
+
935
+ super(options.merge h)
936
+
937
+ end
938
+
939
+ end
940
+
941
+ class SilentModeTrigger < Trigger
942
+
943
+ def initialize(h={})
944
+
945
+ options = {
946
+ silent_enabled: true
947
+ }
948
+
949
+ super(options.merge h)
950
+
951
+ end
952
+
953
+ end
954
+
955
+ class WeatherTrigger < Trigger
956
+
957
+ def initialize(h={})
958
+
959
+ options = {
960
+ humidity_above: true,
961
+ humidity_value: 50,
962
+ option: 4,
963
+ temp_below: true,
964
+ temp_celcius: true,
965
+ temperature: 0,
966
+ weather_condition: 0,
967
+ wind_speed_above: true,
968
+ wind_speed_value: 0,
969
+ wind_speed_value_mph: 0
970
+ }
971
+
972
+ super(options.merge h)
973
+
974
+ end
975
+
976
+ end
977
+
978
+ class GeofenceTrigger < Trigger
979
+
980
+ def initialize(h={})
981
+
982
+ options = {
983
+ update_rate_text: '5 Minutes',
984
+ geofence_id: '',
985
+ geofence_update_rate_minutes: 5,
986
+ trigger_from_unknown: false,
987
+ enter_area: true
988
+ }
989
+
990
+ super(options.merge h)
991
+
992
+ end
993
+
994
+ end
995
+
996
+ class SunriseSunsetTrigger < Trigger
997
+
998
+ def initialize(h={})
999
+
1000
+ options = {
1001
+ option: 0,
1002
+ time_adjust_seconds: 0
1003
+ }
1004
+
1005
+ super(options.merge h)
1006
+
1007
+ end
1008
+
1009
+ end
1010
+
1011
+
1012
+ class ActivityRecognitionTrigger < Trigger
1013
+
1014
+ def initialize(h={})
1015
+
1016
+ options = {
1017
+ confidence_level: 50,
1018
+ selected_index: 1
1019
+ }
1020
+
1021
+ super(options.merge h)
1022
+
1023
+ end
1024
+
1025
+ end
1026
+
1027
+
1028
+ class ProximityTrigger < Trigger
1029
+
1030
+ def initialize(h={})
1031
+
1032
+ options = {
1033
+ near: true,
1034
+ selected_option: 0
1035
+ }
1036
+
1037
+ super(options.merge h)
1038
+
1039
+ end
1040
+
1041
+ end
1042
+
1043
+ class ShakeDeviceTrigger < Trigger
1044
+
1045
+ def initialize(h={})
1046
+
1047
+ options = {
1048
+ }
1049
+
1050
+ super(options.merge h)
1051
+
1052
+ end
1053
+
1054
+ end
1055
+
1056
+ class FlipDeviceTrigger < Trigger
1057
+
1058
+ def initialize(h={})
1059
+
1060
+ options = {
1061
+ any_start: false,
1062
+ face_down: true,
1063
+ work_with_screen_off: false
1064
+ }
1065
+
1066
+ super(options.merge h)
1067
+
570
1068
  end
571
1069
 
572
1070
  end
573
1071
 
574
- class ClipboardChangeTrigger < Trigger
1072
+ class OrientationTrigger < Trigger
1073
+
1074
+ def initialize(h={})
1075
+
1076
+ options = {
1077
+ check_orientation_alive: true,
1078
+ option: 0
1079
+ }
1080
+
1081
+ super(options.merge h)
1082
+
1083
+ end
1084
+
1085
+ end
1086
+
1087
+ class FloatingButtonTrigger < Trigger
1088
+
1089
+ def initialize(h={})
1090
+
1091
+ options = {
1092
+ image_resource_id: 0,
1093
+ icon_bg_color: -9079435,
1094
+ alpha: 100,
1095
+ padding: 20,
1096
+ force_location: false,
1097
+ show_on_lock_screen: false,
1098
+ size: 0,
1099
+ transparent_background: false,
1100
+ x_location: 0,
1101
+ y_location: 0
1102
+ }
1103
+
1104
+ super(options.merge h)
1105
+
1106
+ end
1107
+
1108
+ end
1109
+
1110
+ class ShortcutTrigger < Trigger
1111
+
1112
+ def initialize(h={})
1113
+
1114
+ options = {
1115
+ }
1116
+
1117
+ super(options.merge h)
1118
+
1119
+ end
1120
+
1121
+ end
1122
+
1123
+ class VolumeButtonTrigger < Trigger
1124
+
1125
+ def initialize(h={})
1126
+
1127
+ options = {
1128
+ dont_change_volume: true,
1129
+ monitor_option: 1,
1130
+ not_configured: false,
1131
+ option: 0
1132
+ }
1133
+
1134
+ super(options.merge h)
1135
+
1136
+ end
1137
+
1138
+ end
1139
+
1140
+ class MediaButtonPressedTrigger < Trigger
1141
+
1142
+ def initialize(h={})
1143
+
1144
+ options = {
1145
+ option: 'Single Press',
1146
+ cancel_press: false
1147
+ }
1148
+
1149
+ super(options.merge h)
1150
+
1151
+ end
1152
+
1153
+ end
1154
+
1155
+ class SwipeTrigger < Trigger
1156
+
1157
+ def initialize(h={})
1158
+
1159
+ options = {
1160
+ swipe_start_area: 0,
1161
+ swipe_motion: 0,
1162
+ cleared: true
1163
+ }
1164
+
1165
+ super(options.merge h)
1166
+
1167
+ end
1168
+
1169
+ end
1170
+
1171
+
1172
+ class Action < MacroObject
1173
+
1174
+ def initialize(h={})
1175
+ super(h)
1176
+ end
1177
+
1178
+ end
1179
+
1180
+
1181
+
1182
+ class ShareLocationAction < Action
1183
+
1184
+ def initialize(h={})
1185
+
1186
+ options = {
1187
+ email: '',
1188
+ variable: {:m_stringValue=>"", :m_name=>"",
1189
+ :m_decimalValue=>0.0, :isLocal=>true, :m_booleanValue=>false,
1190
+ :excludeFromLog=>false, :m_intValue=>0, :m_type=>2},
1191
+ sim_id: 0,
1192
+ output_channel: 5,
1193
+ old_variable_format: true
1194
+ }
1195
+
1196
+ super(options.merge h)
1197
+
1198
+ end
1199
+
1200
+ end
1201
+
1202
+ class UDPCommandAction < Action
1203
+
1204
+ def initialize(h={})
1205
+
1206
+ options = {
1207
+ destination: '',
1208
+ message: '',
1209
+ port: 1024
1210
+ }
1211
+
1212
+ super(options.merge h)
1213
+
1214
+ end
1215
+
1216
+ end
1217
+
1218
+ class UDPCommandAction < Action
1219
+
1220
+ def initialize(h={})
1221
+
1222
+ options = {
1223
+ destination: '',
1224
+ message: '',
1225
+ port: 1024
1226
+ }
1227
+
1228
+ super(options.merge h)
1229
+
1230
+ end
1231
+
1232
+ end
1233
+
1234
+ class LaunchActivityAction < Action
1235
+
1236
+ def initialize(h={})
1237
+
1238
+ options = {
1239
+ application_name: 'Chrome',
1240
+ package_to_launch: 'com.android.chrome',
1241
+ exclude_from_recents: false,
1242
+ start_new: false
1243
+ }
1244
+
1245
+ super(options.merge h)
1246
+
1247
+ end
1248
+
1249
+ end
1250
+
1251
+ class KillBackgroundAppAction < Action
1252
+
1253
+ def initialize(h={})
1254
+
1255
+ options = {
1256
+ application_name_list: [""],
1257
+ package_name_list: [""]
1258
+ }
1259
+
1260
+ super(options.merge h)
1261
+
1262
+ end
1263
+
1264
+ end
1265
+
1266
+ class OpenWebPageAction < Action
1267
+
1268
+ def initialize(h={})
1269
+
1270
+ options = {
1271
+ variable_to_save_response: {:m_stringValue=>"", :m_name=>"", :m_decimalValue=>0.0, :isLocal=>true, :m_booleanValue=>false, :excludeFromLog=>false, :m_intValue=>0, :m_type=>2},
1272
+ url_to_open: '',
1273
+ http_get: true,
1274
+ disable_url_encode: false,
1275
+ block_next_action: false
1276
+ }
1277
+
1278
+ super(options.merge h)
1279
+
1280
+ end
1281
+
1282
+ end
1283
+
1284
+ class UploadPhotoAction < Action
1285
+
1286
+ def initialize(h={})
1287
+
1288
+ options = {
1289
+ option: 'Via Intent',
1290
+ use_smtp_email: false
1291
+ }
1292
+
1293
+ super(options.merge h)
1294
+
1295
+ end
1296
+
1297
+ end
1298
+
1299
+ class TakePictureAction < Action
1300
+
1301
+ def initialize(h={})
1302
+
1303
+ options = {
1304
+ new_path: '/storage/sdcard1/DCIM/Camera',
1305
+ path: '/storage/sdcard1/DCIM/Camera',
1306
+ show_icon: true,
1307
+ use_front_camera: true,
1308
+ flash_option: 0
1309
+ }
1310
+
1311
+ super(options.merge h)
1312
+
1313
+ end
1314
+
1315
+ end
1316
+
1317
+ class SetWifiAction < Action
1318
+
1319
+ def initialize(h={})
1320
+
1321
+ options = {
1322
+ ssid: '[Select Wifi]',
1323
+ network_id: 0,
1324
+ state: 0
1325
+ }
1326
+
1327
+ super(options.merge h)
1328
+
1329
+ end
1330
+
1331
+ end
1332
+
1333
+ class SetBluetoothAction < Action
1334
+
1335
+ def initialize(h={})
1336
+
1337
+ options = {
1338
+ device_name: '',
1339
+ state: 0
1340
+ }
1341
+
1342
+ super(options.merge h)
1343
+
1344
+ end
1345
+
1346
+ end
1347
+
1348
+ class SetBluetoothAction < Action
1349
+
1350
+ def initialize(h={})
1351
+
1352
+ options = {
1353
+ device_name: '',
1354
+ state: 1
1355
+ }
1356
+
1357
+ super(options.merge h)
1358
+
1359
+ end
1360
+
1361
+ end
1362
+
1363
+ class SendIntentAction < Action
1364
+
1365
+ def initialize(h={})
1366
+
1367
+ options = {
1368
+ action: '',
1369
+ class_name: '',
1370
+ data: '',
1371
+ extra1_name: '',
1372
+ extra1_value: '',
1373
+ extra2_name: '',
1374
+ extra2_value: '',
1375
+ extra3_name: '',
1376
+ extra3_value: '',
1377
+ extra4_name: '',
1378
+ extra4_value: '',
1379
+ package_name: '',
1380
+ target: 'Activity'
1381
+ }
1382
+
1383
+ super(options.merge h)
1384
+
1385
+ end
1386
+
1387
+ end
1388
+
1389
+ class SetAlarmClockAction < Action
1390
+
1391
+ def initialize(h={})
1392
+
1393
+ options = {
1394
+ days_of_week: [false, false, false, false, false, false, false],
1395
+ label: 'wakeup mum',
1396
+ delay_in_minutes: 1,
1397
+ hour: 8,
1398
+ delay_in_hours: 0,
1399
+ minute: 15,
1400
+ one_off: true,
1401
+ option: 0,
1402
+ relative: true,
1403
+ day_option: 0
1404
+ }
1405
+
1406
+ super(options.merge h)
1407
+
1408
+ end
1409
+
1410
+ end
1411
+
1412
+ class StopWatchAction < Action
1413
+
1414
+ def initialize(h={})
1415
+
1416
+ options = {
1417
+ stopwatch_name: 'timer1',
1418
+ option: 0
1419
+ }
1420
+
1421
+ super(options.merge h)
1422
+
1423
+ end
1424
+
1425
+ end
1426
+
1427
+ class SayTimeAction < Action
1428
+
1429
+ def initialize(h={})
1430
+
1431
+ options = {
1432
+ :'12_hour' => true
1433
+ }
1434
+
1435
+ super(options.merge h)
1436
+
1437
+ end
1438
+
1439
+ end
1440
+
1441
+ class AndroidShortcutsAction < Action
1442
+
1443
+ def initialize(h={})
1444
+
1445
+ options = {
1446
+ option: 1
1447
+ }
1448
+
1449
+ super(options.merge h)
1450
+
1451
+ end
1452
+
1453
+ end
1454
+
1455
+ class ClipboardAction < Action
1456
+
1457
+ def initialize(h={})
1458
+
1459
+ options = {
1460
+ clipboard_text: ''
1461
+ }
1462
+
1463
+ super(options.merge h)
1464
+
1465
+ end
1466
+
1467
+ end
1468
+
1469
+ class PressBackAction < Action
1470
+
1471
+ def initialize(h={})
1472
+
1473
+ options = {
1474
+ }
1475
+
1476
+ super(options.merge h)
1477
+
1478
+ end
1479
+
1480
+ end
1481
+
1482
+ class SpeakTextAction < Action
1483
+
1484
+ def initialize(h={})
1485
+
1486
+ options = {
1487
+ text_to_say: '',
1488
+ queue: false,
1489
+ read_numbers_individually: false,
1490
+ specify_audio_stream: false,
1491
+ speed: 0.99,
1492
+ pitch: 0.99,
1493
+ wait_to_finish: false,
1494
+ audio_stream: 0
1495
+ }
1496
+
1497
+ super(options.merge h)
575
1498
 
576
- def initialize(h={})
577
- super({}.merge h)
578
1499
  end
579
1500
 
580
1501
  end
581
1502
 
582
- class BootTrigger < Trigger
1503
+ class UIInteractionAction < Action
583
1504
 
584
- def initialize(h={})
585
- super({}.merge h)
586
- end
1505
+ def initialize(h={})
587
1506
 
588
- end
1507
+ options = {
1508
+ ui_interaction_configuration: {:type=>"Copy"},
1509
+ action: 2
1510
+ }
589
1511
 
590
- class IntentReceivedTrigger < Trigger
1512
+ super(options.merge h)
591
1513
 
592
- def initialize(h={})
593
- super({}.merge h)
594
1514
  end
595
1515
 
596
1516
  end
597
1517
 
598
- class NotificationTrigger < Trigger
1518
+ class VoiceSearchAction < Action
599
1519
 
600
- def initialize(h={})
601
- super({}.merge h)
602
- end
1520
+ def initialize(h={})
603
1521
 
604
- end
1522
+ options = {
1523
+ }
605
1524
 
606
- class ScreenOnOffTrigger < Trigger
1525
+ super(options.merge h)
607
1526
 
608
- def initialize(h={})
609
- super({}.merge h)
610
1527
  end
611
1528
 
612
1529
  end
613
1530
 
614
- class SilentModeTrigger < Trigger
1531
+ class ExpandCollapseStatusBarAction < Action
615
1532
 
616
- def initialize(h={})
617
- super({}.merge h)
618
- end
1533
+ def initialize(h={})
619
1534
 
620
- end
1535
+ options = {
1536
+ option: 0
1537
+ }
621
1538
 
622
- class WeatherTrigger < Trigger
1539
+ super(options.merge h)
623
1540
 
624
- def initialize(h={})
625
- super({}.merge h)
626
1541
  end
627
1542
 
628
1543
  end
629
1544
 
630
- class GeofenceTrigger < Trigger
1545
+ class LaunchHomeScreenAction < Action
631
1546
 
632
- def initialize(h={})
633
- super({}.merge h)
634
- end
1547
+ def initialize(h={})
635
1548
 
636
- end
1549
+ options = {
1550
+ }
637
1551
 
638
- class SunriseSunsetTrigger < Trigger
1552
+ super(options.merge h)
639
1553
 
640
- def initialize(h={})
641
- super({}.merge h)
642
1554
  end
643
1555
 
644
1556
  end
645
1557
 
646
- class ActivityRecognitionTrigger < Trigger
1558
+ class CameraFlashLightAction < Action
647
1559
 
648
- def initialize(h={})
649
- super({}.merge h)
650
- end
1560
+ def initialize(h={})
651
1561
 
652
- end
1562
+ options = {
1563
+ launch_foreground: false,
1564
+ state: 0
1565
+ }
653
1566
 
654
- class ProximityTrigger < Trigger
1567
+ super(options.merge h)
655
1568
 
656
- def initialize(h={})
657
- super({}.merge h)
658
1569
  end
659
1570
 
660
1571
  end
661
1572
 
662
- class ShakeDeviceTrigger < Trigger
1573
+ class VibrateAction < Action
663
1574
 
664
- def initialize(h={})
665
- super({}.merge h)
666
- end
1575
+ def initialize(h={})
667
1576
 
668
- end
1577
+ options = {
1578
+ vibrate_pattern: 1
1579
+ }
669
1580
 
670
- class FlipDeviceTrigger < Trigger
1581
+ super(options.merge h)
671
1582
 
672
- def initialize(h={})
673
- super({}.merge h)
674
1583
  end
675
1584
 
676
1585
  end
677
1586
 
678
- class OrientationTrigger < Trigger
1587
+ class SetAutoRotateAction < Action
679
1588
 
680
- def initialize(h={})
681
- super({}.merge h)
682
- end
1589
+ def initialize(h={})
683
1590
 
684
- end
1591
+ options = {
1592
+ state: 0
1593
+ }
685
1594
 
686
- class FloatingButtonTrigger < Trigger
1595
+ super(options.merge h)
687
1596
 
688
- def initialize(h={})
689
- super({}.merge h)
690
1597
  end
691
1598
 
692
1599
  end
693
1600
 
694
- class ShortcutTrigger < Trigger
1601
+ class DayDreamAction < Action
695
1602
 
696
- def initialize(h={})
697
- super({}.merge h)
698
- end
1603
+ def initialize(h={})
699
1604
 
700
- end
1605
+ options = {
1606
+ }
701
1607
 
702
- class VolumeButtonTrigger < Trigger
1608
+ super(options.merge h)
703
1609
 
704
- def initialize(h={})
705
- super({}.merge h)
706
1610
  end
707
1611
 
708
1612
  end
709
1613
 
710
- class MediaButtonPressedTrigger < Trigger
1614
+ class SetKeyboardAction < Action
711
1615
 
712
- def initialize(h={})
713
- super({}.merge h)
714
- end
1616
+ def initialize(h={})
715
1617
 
716
- end
1618
+ options = {
1619
+ }
717
1620
 
718
- class SwipeTrigger < Trigger
1621
+ super(options.merge h)
719
1622
 
720
- def initialize(h={})
721
- super({}.merge h)
722
1623
  end
723
1624
 
724
1625
  end
725
1626
 
1627
+ class SetKeyguardAction < Action
726
1628
 
727
- class Action < MacroObject
1629
+ def initialize(h={})
728
1630
 
729
- def initialize(h={})
730
- super(h)
731
- end
1631
+ options = {
1632
+ keyguard_on: true
1633
+ }
732
1634
 
733
- end
1635
+ super(options.merge h)
734
1636
 
1637
+ end
735
1638
 
1639
+ end
736
1640
 
737
- class ShareLocationAction < Action
1641
+ class CarModeAction < Action
738
1642
 
739
- def initialize(h={})
740
- super({sim_id: 0, output_channel: 5, old_variable_format: true}.merge(h))
741
- end
1643
+ def initialize(h={})
742
1644
 
743
- end
1645
+ options = {
1646
+ option: 0
1647
+ }
744
1648
 
745
- class UDPCommandAction < Action
1649
+ super(options.merge h)
746
1650
 
747
- def initialize(h={})
748
- super({destination: '', message: '', port: 0}.merge h)
749
1651
  end
750
1652
 
751
1653
  end
752
1654
 
753
- class LaunchActivityAction < Action
1655
+ class ChangeKeyboardAction < Action
754
1656
 
755
- def initialize(h={})
756
- super({}.merge h)
757
- end
1657
+ def initialize(h={})
758
1658
 
759
- end
1659
+ options = {
1660
+ keyboard_id: 'com.android.inputmethod.latin/.LatinIME',
1661
+ keyboard_name: 'Android Keyboard (AOSP)'
1662
+ }
760
1663
 
761
- class KillBackgroundAppAction < Action
1664
+ super(options.merge h)
762
1665
 
763
- def initialize(h={})
764
- super({}.merge h)
765
1666
  end
766
1667
 
767
1668
  end
768
1669
 
769
- class OpenWebPageAction < Action
1670
+ class SetWallpaperAction < Action
770
1671
 
771
- def initialize(h={})
772
- super({}.merge h)
773
- end
1672
+ def initialize(h={})
774
1673
 
775
- end
1674
+ options = {
1675
+ image_name: '6051449505275476553',
1676
+ s_screen_options: ["Home Screen", "Lock Screen", "Home + Lock Screen"],
1677
+ s_options: ["Image", "Live Wallpaper (Preview Screen)"],
1678
+ wallpaper_uri_string: 'content://media/external/images/media/928',
1679
+ screen_option: 0,
1680
+ option: 0
1681
+ }
776
1682
 
777
- class UploadPhotoAction < Action
1683
+ super(options.merge h)
778
1684
 
779
- def initialize(h={})
780
- super({}.merge h)
781
1685
  end
782
1686
 
783
1687
  end
784
1688
 
785
- class TakePictureAction < Action
1689
+ class OpenFileAction < Action
786
1690
 
787
- def initialize(h={})
788
- super({}.merge h)
789
- end
1691
+ def initialize(h={})
790
1692
 
791
- end
1693
+ options = {
1694
+ app_name: '',
1695
+ class_name: '',
1696
+ package_name: '',
1697
+ file_path: ''
1698
+ }
792
1699
 
793
- class SetWifiAction < Action
1700
+ super(options.merge h)
794
1701
 
795
- def initialize(h={})
796
- super({}.merge h)
797
1702
  end
798
1703
 
799
1704
  end
800
1705
 
801
- class SetBluetoothAction < Action
1706
+ class ForceLocationUpdateAction < Action
802
1707
 
803
- def initialize(h={})
804
- super({}.merge h)
805
- end
1708
+ def initialize(h={})
806
1709
 
807
- end
1710
+ options = {
1711
+ }
808
1712
 
809
- class SendIntentAction < Action
1713
+ super(options.merge h)
810
1714
 
811
- def initialize(h={})
812
- super({}.merge h)
813
1715
  end
814
1716
 
815
1717
  end
816
1718
 
817
- class SetAlarmClockAction < Action
1719
+ class ShareLocationAction < Action
818
1720
 
819
- def initialize(h={})
820
- super({}.merge h)
821
- end
1721
+ def initialize(h={})
822
1722
 
823
- end
1723
+ options = {
1724
+ email: '',
1725
+ variable: {:m_stringValue=>"", :m_name=>"", :m_decimalValue=>0.0, :isLocal=>true, :m_booleanValue=>false, :excludeFromLog=>false, :m_intValue=>0, :m_type=>2},
1726
+ sim_id: 0,
1727
+ output_channel: 5,
1728
+ old_variable_format: true
1729
+ }
824
1730
 
825
- class StopWatchAction < Action
1731
+ super(options.merge h)
826
1732
 
827
- def initialize(h={})
828
- super({}.merge h)
829
1733
  end
830
1734
 
831
1735
  end
832
1736
 
833
- class SayTimeAction < Action
1737
+ class SetLocationUpdateRateAction < Action
834
1738
 
835
- def initialize(h={})
836
- super({}.merge h)
837
- end
1739
+ def initialize(h={})
838
1740
 
839
- end
1741
+ options = {
1742
+ update_rate: 0,
1743
+ update_rate_seconds: 600
1744
+ }
840
1745
 
841
- class AndroidShortcutsAction < Action
1746
+ super(options.merge h)
842
1747
 
843
- def initialize(h={})
844
- super({}.merge h)
845
1748
  end
846
1749
 
847
1750
  end
848
1751
 
849
- class ClipboardAction < Action
1752
+ class AddCalendarEntryAction < Action
850
1753
 
851
- def initialize(h={})
852
- super({}.merge h)
853
- end
1754
+ def initialize(h={})
854
1755
 
855
- end
1756
+ options = {
1757
+ title: '',
1758
+ duration_value: '0',
1759
+ calendar_id: '3',
1760
+ detail: '',
1761
+ availability: 0,
1762
+ fixed_days: 16,
1763
+ fixed_hour: 0,
1764
+ fixed_minute: 0,
1765
+ fixed_months: 8,
1766
+ fixed_time: true,
1767
+ relative_days: 0,
1768
+ relative_hours: 0,
1769
+ relative_minutes: 0,
1770
+ all_day_event: true
1771
+ }
856
1772
 
857
- class PressBackAction < Action
1773
+ super(options.merge h)
858
1774
 
859
- def initialize(h={})
860
- super({}.merge h)
861
1775
  end
862
1776
 
863
1777
  end
864
1778
 
865
- class SpeakTextAction < Action
1779
+ class LogAction < Action
866
1780
 
867
- def initialize(h={})
868
- super({}.merge h)
869
- end
1781
+ def initialize(h={})
870
1782
 
871
- end
1783
+ options = {
1784
+ log_text: '',
1785
+ log_date_and_time: true
1786
+ }
872
1787
 
873
- class UIInteractionAction < Action
1788
+ super(options.merge h)
874
1789
 
875
- def initialize(h={})
876
- super({}.merge h)
877
1790
  end
878
1791
 
879
1792
  end
880
1793
 
881
- class VoiceSearchAction < Action
1794
+ class ClearLogAction < Action
882
1795
 
883
- def initialize(h={})
884
- super({}.merge h)
885
- end
1796
+ def initialize(h={})
886
1797
 
887
- end
1798
+ options = {
1799
+ user_log: true
1800
+ }
888
1801
 
889
- class ExpandCollapseStatusBarAction < Action
1802
+ super(options.merge h)
890
1803
 
891
- def initialize(h={})
892
- super({}.merge h)
893
1804
  end
894
1805
 
895
1806
  end
896
1807
 
897
- class LaunchHomeScreenAction < Action
1808
+ class RecordMicrophoneAction < Action
898
1809
 
899
- def initialize(h={})
900
- super({}.merge h)
901
- end
1810
+ def initialize(h={})
902
1811
 
903
- end
1812
+ options = {
1813
+ path: '',
1814
+ record_time_string: 'Until Cancelled',
1815
+ recording_format: 0,
1816
+ seconds_to_record_for: -1
1817
+ }
904
1818
 
905
- class CameraFlashLightAction < Action
1819
+ super(options.merge h)
906
1820
 
907
- def initialize(h={})
908
- super({}.merge h)
909
1821
  end
910
1822
 
911
1823
  end
912
1824
 
913
- class VibrateAction < Action
1825
+ class RecordMicrophoneAction < Action
914
1826
 
915
- def initialize(h={})
916
- super({}.merge h)
917
- end
1827
+ def initialize(h={})
918
1828
 
919
- end
1829
+ options = {
1830
+ path: '/storage/emulated/0/MacroDroid/Recordings',
1831
+ record_time_string: 'Cancel Recording',
1832
+ recording_format: 0,
1833
+ seconds_to_record_for: -2
1834
+ }
920
1835
 
921
- class SetAutoRotateAction < Action
1836
+ super(options.merge h)
922
1837
 
923
- def initialize(h={})
924
- super({}.merge h)
925
1838
  end
926
1839
 
927
1840
  end
928
1841
 
929
- class DayDreamAction < Action
1842
+ class PlaySoundAction < Action
930
1843
 
931
- def initialize(h={})
932
- super({}.merge h)
933
- end
1844
+ def initialize(h={})
934
1845
 
935
- end
1846
+ options = {
1847
+ selected_index: 0,
1848
+ file_path: ''
1849
+ }
936
1850
 
937
- class SetKeyboardAction < Action
1851
+ super(options.merge h)
938
1852
 
939
- def initialize(h={})
940
- super({}.merge h)
941
1853
  end
942
1854
 
943
1855
  end
944
1856
 
945
- class SetKeyguardAction < Action
946
1857
 
947
- def initialize(h={})
948
- super({}.merge h)
949
- end
1858
+ class SendEmailAction < Action
950
1859
 
951
- end
1860
+ def initialize(h={})
952
1861
 
953
- class CarModeAction < Action
1862
+ options = {
1863
+ subject: '',
1864
+ body: '',
1865
+ email_address: '',
1866
+ from_email_address: '',
1867
+ attach_user_log: false,
1868
+ attach_log: false,
1869
+ send_option: 0
1870
+ }
1871
+
1872
+ super(options.merge h)
954
1873
 
955
- def initialize(h={})
956
- super({}.merge h)
957
1874
  end
958
1875
 
959
1876
  end
960
1877
 
961
- class ChangeKeyboardAction < Action
1878
+ class SendSMSAction < Action
962
1879
 
963
- def initialize(h={})
964
- super({}.merge h)
965
- end
1880
+ def initialize(h={})
966
1881
 
967
- end
1882
+ options = {
1883
+ number: '',
1884
+ contact: {:m_id=>"Hardwired_Number", :m_lookupKey=>"Hardwired_Number", :m_name=>"[Select Number]"},
1885
+ message_content: '',
1886
+ add_to_message_log: false,
1887
+ pre_populate: false,
1888
+ sim_id: 0
1889
+ }
968
1890
 
969
- class SetWallpaperAction < Action
1891
+ super(options.merge h)
970
1892
 
971
- def initialize(h={})
972
- super({}.merge h)
973
1893
  end
974
1894
 
975
1895
  end
976
1896
 
977
- class OpenFileAction < Action
1897
+ class UDPCommandAction < Action
978
1898
 
979
- def initialize(h={})
980
- super({}.merge h)
981
- end
1899
+ def initialize(h={})
982
1900
 
983
- end
1901
+ options = {
1902
+ destination: '',
1903
+ message: '',
1904
+ port: 1024
1905
+ }
984
1906
 
985
- class ForceLocationUpdateAction < Action
1907
+ super(options.merge h)
986
1908
 
987
- def initialize(h={})
988
- super({}.merge h)
989
1909
  end
990
1910
 
991
1911
  end
992
1912
 
993
- class SetLocationUpdateRateAction < Action
1913
+ class ClearNotificationsAction < Action
994
1914
 
995
- def initialize(h={})
996
- super({}.merge h)
997
- end
1915
+ def initialize(h={})
998
1916
 
999
- end
1917
+ options = {
1918
+ package_name_list: [],
1919
+ match_text: '',
1920
+ application_name_list: [],
1921
+ clear_persistent: false,
1922
+ excludes: false,
1923
+ match_option: 0,
1924
+ age_in_seconds: 0,
1925
+ option: 0,
1926
+ enable_regex: false
1927
+ }
1000
1928
 
1001
- class AddCalendarEntryAction < Action
1929
+ super(options.merge h)
1002
1930
 
1003
- def initialize(h={})
1004
- super({}.merge h)
1005
1931
  end
1006
1932
 
1007
1933
  end
1008
1934
 
1009
- class LogAction < Action
1935
+ class MessageDialogAction < Action
1010
1936
 
1011
- def initialize(h={})
1012
- super({}.merge h)
1013
- end
1937
+ def initialize(h={})
1014
1938
 
1015
- end
1939
+ options = {
1940
+ secondary_class_type: 'MessageDialogAction',
1941
+ ringtone_name: 'Default',
1942
+ notification_text: '',
1943
+ notification_subject: '',
1944
+ macro_guid_to_run: -0,
1945
+ notification_channel_type: 0,
1946
+ image_resource_id: 0,
1947
+ overwrite_existing: false,
1948
+ priority: 0,
1949
+ ringtone_index: 0,
1950
+ icon_bg_color: -1762269,
1951
+ run_macro_when_pressed: false
1952
+ }
1016
1953
 
1017
- class ClearLogAction < Action
1954
+ super(options.merge h)
1018
1955
 
1019
- def initialize(h={})
1020
- super({}.merge h)
1021
1956
  end
1022
1957
 
1023
1958
  end
1024
1959
 
1025
- class RecordMicrophoneAction < Action
1960
+ class AllowLEDNotificationLightAction < Action
1026
1961
 
1027
- def initialize(h={})
1028
- super({}.merge h)
1029
- end
1962
+ def initialize(h={})
1030
1963
 
1031
- end
1964
+ options = {
1965
+ enabled: true
1966
+ }
1032
1967
 
1033
- class PlaySoundAction < Action
1968
+ super(options.merge h)
1034
1969
 
1035
- def initialize(h={})
1036
- super({}.merge h)
1037
1970
  end
1038
1971
 
1039
1972
  end
1040
1973
 
1041
- class SendEmailAction < Action
1974
+ class SetNotificationSoundAction < Action
1042
1975
 
1043
- def initialize(h={})
1044
- super({}.merge h)
1045
- end
1976
+ def initialize(h={})
1046
1977
 
1047
- end
1978
+ options = {
1979
+ ringtone_uri: 'content://media/internal/audio/media/27'
1980
+ }
1048
1981
 
1049
- class SendSMSAction < Action
1982
+ super(options.merge h)
1050
1983
 
1051
- def initialize(h={})
1052
- super({}.merge h)
1053
1984
  end
1054
1985
 
1055
1986
  end
1056
1987
 
1057
- class ClearNotificationsAction < Action
1988
+ class SetNotificationSoundAction < Action
1058
1989
 
1059
- def initialize(h={})
1060
- super({}.merge h)
1061
- end
1990
+ def initialize(h={})
1062
1991
 
1063
- end
1992
+ options = {
1993
+ ringtone_uri: 'content://media/internal/audio/media/51'
1994
+ }
1064
1995
 
1065
- class MessageDialogAction < Action
1996
+ super(options.merge h)
1066
1997
 
1067
- def initialize(h={})
1068
- super({}.merge h)
1069
1998
  end
1070
1999
 
1071
2000
  end
1072
2001
 
1073
- class AllowLEDNotificationLightAction < Action
2002
+ class SetNotificationSoundAction < Action
1074
2003
 
1075
- def initialize(h={})
1076
- super({}.merge h)
1077
- end
2004
+ def initialize(h={})
1078
2005
 
1079
- end
2006
+ options = {
2007
+ ringtone_name: 'None'
2008
+ }
1080
2009
 
1081
- class SetNotificationSoundAction < Action
2010
+ super(options.merge h)
1082
2011
 
1083
- def initialize(h={})
1084
- super({}.merge h)
1085
2012
  end
1086
2013
 
1087
2014
  end
1088
2015
 
1089
2016
  class NotificationAction < Action
1090
2017
 
1091
- def initialize(h={})
1092
- super({}.merge h)
2018
+ def initialize(h={})
2019
+
2020
+ options = {
2021
+ ringtone_name: 'Default',
2022
+ notification_text: '',
2023
+ notification_subject: '',
2024
+ macro_guid_to_run: 0,
2025
+ notification_channel_type: 0,
2026
+ image_resource_id: 0,
2027
+ overwrite_existing: false,
2028
+ priority: 0,
2029
+ ringtone_index: 0,
2030
+ icon_bg_color: -1762269,
2031
+ run_macro_when_pressed: false
2032
+ }
2033
+
2034
+ super(options.merge h)
2035
+
1093
2036
  end
1094
2037
 
1095
2038
  end
1096
2039
 
1097
2040
  class ToastAction < Action
1098
2041
 
1099
- def initialize(h={})
1100
-
2042
+ def initialize(h={})
2043
+
1101
2044
  options = {
1102
- message_text: 'Popup message for you!',
2045
+ message_text: '',
1103
2046
  image_resource_name: 'launcher_no_border',
1104
2047
  image_package_name: 'com.arlosoft.macrodroid',
1105
2048
  image_name: 'launcher_no_border',
1106
2049
  duration: 0,
1107
2050
  display_icon: true,
1108
2051
  background_color: -12434878,
1109
- position: 0,
2052
+ position: 0
1110
2053
  }
1111
-
2054
+
1112
2055
  super(options.merge h)
2056
+
1113
2057
  end
1114
2058
 
1115
2059
  end
1116
2060
 
1117
2061
  class AnswerCallAction < Action
1118
2062
 
1119
- def initialize(h={})
1120
- super({}.merge h)
2063
+ def initialize(h={})
2064
+
2065
+ options = {
2066
+ selected_index: 0
2067
+ }
2068
+
2069
+ super(options.merge h)
2070
+
1121
2071
  end
1122
2072
 
1123
2073
  end
1124
2074
 
1125
2075
  class ClearCallLogAction < Action
1126
2076
 
1127
- def initialize(h={})
1128
- super({}.merge h)
2077
+ def initialize(h={})
2078
+
2079
+ options = {
2080
+ non_contact: false,
2081
+ specific_contact: false,
2082
+ type: 0
2083
+ }
2084
+
2085
+ super(options.merge h)
2086
+
1129
2087
  end
1130
2088
 
1131
2089
  end
1132
2090
 
1133
2091
  class OpenCallLogAction < Action
1134
2092
 
1135
- def initialize(h={})
1136
- super({}.merge h)
2093
+ def initialize(h={})
2094
+
2095
+ options = {
2096
+ }
2097
+
2098
+ super(options.merge h)
2099
+
1137
2100
  end
1138
2101
 
1139
2102
  end
1140
2103
 
1141
2104
  class RejectCallAction < Action
1142
2105
 
1143
- def initialize(h={})
1144
- super({}.merge h)
2106
+ def initialize(h={})
2107
+
2108
+ options = {
2109
+ }
2110
+
2111
+ super(options.merge h)
2112
+
1145
2113
  end
1146
2114
 
1147
2115
  end
1148
2116
 
1149
2117
  class MakeCallAction < Action
1150
2118
 
1151
- def initialize(h={})
1152
- super({}.merge h)
2119
+ def initialize(h={})
2120
+
2121
+ options = {
2122
+ contact: {:m_id=>"Hardwired_Number", :m_lookupKey=>"Hardwired_Number", :m_name=>"[Select Number]"},
2123
+ number: ''
2124
+ }
2125
+
2126
+ super(options.merge h)
2127
+
1153
2128
  end
1154
2129
 
1155
2130
  end
1156
2131
 
1157
2132
  class SetRingtoneAction < Action
1158
2133
 
1159
- def initialize(h={})
1160
- super({}.merge h)
2134
+ def initialize(h={})
2135
+
2136
+ options = {
2137
+ ringtone_uri: 'content://media/internal/audio/media/174'
2138
+ }
2139
+
2140
+ super(options.merge h)
2141
+
1161
2142
  end
1162
2143
 
1163
2144
  end
1164
2145
 
1165
2146
  class SetBrightnessAction < Action
1166
2147
 
1167
- def initialize(h={})
1168
- super({}.merge h)
2148
+ def initialize(h={})
2149
+
2150
+ options = {
2151
+ brightness_percent: 81,
2152
+ force_pie_mode: false,
2153
+ brightness: 0
2154
+ }
2155
+
2156
+ super(options.merge h)
2157
+
1169
2158
  end
1170
2159
 
1171
2160
  end
1172
2161
 
1173
2162
  class ForceScreenRotationAction < Action
1174
2163
 
1175
- def initialize(h={})
1176
- super({}.merge h)
2164
+ def initialize(h={})
2165
+
2166
+ options = {
2167
+ option: 0
2168
+ }
2169
+
2170
+ super(options.merge h)
2171
+
1177
2172
  end
1178
2173
 
1179
2174
  end
1180
2175
 
1181
2176
  class ScreenOnAction < Action
1182
2177
 
1183
- def initialize(h={})
1184
- super({}.merge h)
2178
+ def initialize(h={})
2179
+
2180
+ options = {
2181
+ pie_lock_screen: false,
2182
+ screen_off: true,
2183
+ screen_off_no_lock: false,
2184
+ screen_on_alternative: false
2185
+ }
2186
+
2187
+ super(options.merge h)
2188
+
1185
2189
  end
1186
2190
 
1187
2191
  end
1188
2192
 
1189
2193
  class DimScreenAction < Action
1190
2194
 
1191
- def initialize(h={})
1192
- super({}.merge h)
2195
+ def initialize(h={})
2196
+
2197
+ options = {
2198
+ percent: 50,
2199
+ dim_screen_on: true
2200
+ }
2201
+
2202
+ super(options.merge h)
2203
+
1193
2204
  end
1194
2205
 
1195
2206
  end
1196
2207
 
1197
2208
  class KeepAwakeAction < Action
1198
2209
 
1199
- def initialize(h={})
1200
- super({}.merge h)
2210
+ def initialize(h={})
2211
+
2212
+ options = {
2213
+ enabled: true,
2214
+ permanent: true,
2215
+ screen_option: 0,
2216
+ seconds_to_stay_awake_for: 0
2217
+ }
2218
+
2219
+ super(options.merge h)
2220
+
1201
2221
  end
1202
2222
 
1203
2223
  end
1204
2224
 
1205
2225
  class SetScreenTimeoutAction < Action
1206
2226
 
1207
- def initialize(h={})
1208
- super({}.merge h)
2227
+ def initialize(h={})
2228
+
2229
+ options = {
2230
+ timeout_delay_string: '1 Minute',
2231
+ timeout_delay: 60,
2232
+ custom_value_delay: 0
2233
+ }
2234
+
2235
+ super(options.merge h)
2236
+
1209
2237
  end
1210
2238
 
1211
2239
  end
1212
2240
 
2241
+
2242
+
1213
2243
  class SilentModeVibrateOffAction < Action
1214
2244
 
1215
- def initialize(h={})
1216
- super({}.merge h)
2245
+ def initialize(h={})
2246
+
2247
+ options = {
2248
+ option: 1
2249
+ }
2250
+
2251
+ super(options.merge h)
2252
+
1217
2253
  end
1218
2254
 
1219
2255
  end
1220
2256
 
1221
2257
  class SetVibrateAction < Action
1222
2258
 
1223
- def initialize(h={})
1224
- super({}.merge h)
2259
+ def initialize(h={})
2260
+
2261
+ options = {
2262
+ option: 'Silent (Vibrate On)',
2263
+ option_int: -1
2264
+ }
2265
+
2266
+ super(options.merge h)
2267
+
1225
2268
  end
1226
2269
 
1227
2270
  end
1228
2271
 
1229
2272
  class VolumeIncrementDecrementAction < Action
1230
2273
 
1231
- def initialize(h={})
1232
- super({}.merge h)
2274
+ def initialize(h={})
2275
+
2276
+ options = {
2277
+ volume_up: true
2278
+ }
2279
+
2280
+ super(options.merge h)
2281
+
1233
2282
  end
1234
2283
 
1235
2284
  end
1236
2285
 
1237
2286
  class SpeakerPhoneAction < Action
1238
2287
 
1239
- def initialize(h={})
1240
- super({}.merge h)
2288
+ def initialize(h={})
2289
+
2290
+ options = {
2291
+ secondary_class_type: 'SpeakerPhoneAction',
2292
+ state: 0
2293
+ }
2294
+
2295
+ super(options.merge h)
2296
+
1241
2297
  end
1242
2298
 
1243
2299
  end
1244
2300
 
2301
+
2302
+
1245
2303
  class SetVolumeAction < Action
1246
2304
 
1247
- def initialize(h={})
1248
- super({}.merge h)
2305
+ def initialize(h={})
2306
+
2307
+ options = {
2308
+ variables: [nil, nil, nil, nil, nil, nil, nil],
2309
+ stream_index_array: [false, false, false, false, false, false, true],
2310
+ stream_volume_array: [0, 0, 0, 0, 0, 0, 66],
2311
+ force_vibrate_off: false,
2312
+ volume: -1
2313
+ }
2314
+
2315
+ super(options.merge h)
2316
+
1249
2317
  end
1250
2318
 
1251
2319
  end